freebsd-nq/gnu/usr.bin/gdb
Marcel Moolenaar d7aa5f02d0 In kthr.c, obtain the address of the PCB for threads that were running
on a core, when the core was stopped, by calling kgdb_trgt_core_pcb().
This has 2 advantages:
1.  We don't need to include a machine-specific header anymore and as
    such kthr.c is truly machine independent. This allows the code to
    be used in a cross-debugger.
2.  We don't need to lookup stoppcbs in generic code when it's an
    inherently target-spicific symbol. It does not exist for ia64.

Implement kgdb_trgt_core_pcb() for all architectures, except ia64, by
calling a common function called kgdb_trgt_stop_pcb(). This function
differs from kgdb_trgt_core_pcb() in that it gets the size of the PCB
structure as an argument and as such remains machine independent.

On ia64 the PCB for stopped cores is in the PCPU structure itself.
This for better scaling. The implementation of kgdb_trgt_core_pcb()
for ia64 uses the cpuid_to_pcpu[] array to to obtain the address of
the PCB structure.
2013-02-17 02:15:19 +00:00
..
arch Fix typo. Not a win in terms of functionality but in terms of completeness. 2012-08-19 19:17:54 +00:00
doc Fix buildworld -DNO_CLEAN when using with Perforce, which marks files as 2010-08-12 20:46:49 +00:00
gdb General mdoc(7) and typo fixes. 2012-05-10 02:07:00 +00:00
gdbserver MFtbemd: 2010-08-23 22:24:11 +00:00
gdbtui
kgdb In kthr.c, obtain the address of the PCB for threads that were running 2013-02-17 02:15:19 +00:00
libgdb Merging of projects/armv6, part 3 2012-08-15 03:21:56 +00:00
Makefile MFtbemd: 2010-08-23 22:24:11 +00:00
Makefile.inc Merging of projects/armv6, part 3 2012-08-15 03:21:56 +00:00