diff options
author | Pedro Alves <palves@redhat.com> | 2009-02-16 03:16:24 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-02-16 03:16:24 +0000 |
commit | 959b87241d85b42da82c45ecc4bc904895092730 (patch) | |
tree | 2907c74deb6dcb97ec313592635b253a0098f7a6 /gdb/gdbarch.sh | |
parent | d0a63aa7a17ac9f0b3281c5f09f4ece637639141 (diff) | |
download | binutils-gdb-959b87241d85b42da82c45ecc4bc904895092730.tar.gz |
* corelow.c (core_close): Don't hardcode the core's pid.
(core_open): Find core threads before calling
post_create_inferior.
(add_to_thread_list, get_core_register_section): Take into account
systems where the regset section names encode the pid of the
inferior.
* gdbarch.sh (core_reg_section_encodes_pid): New gdbarch setting.
* gdbarch.h, gdbarch.c: Regenerate.
* amd64-sol2-tdep.c (amd64_sol2_init_abi): Set it.
* i386-sol2-tdep.c (i386_sol2_init_abi): Set it.
* sparc-sol2-tdep.c (sparc32_sol2_init_abi): Set it.
* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Set it.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index bcca6c937d9..ac20d4bf25d 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -600,6 +600,13 @@ F:CORE_ADDR:fetch_pointer_argument:struct frame_info *frame, int argi, struct ty # name SECT_NAME and size SECT_SIZE. M:const struct regset *:regset_from_core_section:const char *sect_name, size_t sect_size:sect_name, sect_size +# When creating core dumps, some systems encode the PID in addition +# to the LWP id in core file register section names. In those cases, the +# "XXX" in ".reg/XXX" is encoded as [LWPID << 16 | PID]. This setting +# is set to true for such architectures; false if "XXX" represents an LWP +# or thread id with no special encoding. +v:int:core_reg_section_encodes_pid:::0:0::0 + # Supported register notes in a core file. v:struct core_regset_section *:core_regset_sections:const char *name, int len::::::host_address_to_string (gdbarch->core_regset_sections) |