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/i386-sol2-tdep.c | |
parent | d0a63aa7a17ac9f0b3281c5f09f4ece637639141 (diff) | |
download | gdb-959b87241d85b42da82c45ecc4bc904895092730.zip gdb-959b87241d85b42da82c45ecc4bc904895092730.tar.gz gdb-959b87241d85b42da82c45ecc4bc904895092730.tar.bz2 |
* 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/i386-sol2-tdep.c')
-rw-r--r-- | gdb/i386-sol2-tdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/i386-sol2-tdep.c b/gdb/i386-sol2-tdep.c index c30cd6d..f9666f1 100644 --- a/gdb/i386-sol2-tdep.c +++ b/gdb/i386-sol2-tdep.c @@ -135,6 +135,10 @@ i386_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_skip_solib_resolver (gdbarch, sol2_skip_solib_resolver); set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_ilp32_fetch_link_map_offsets); + + /* Solaris encodes the pid of the inferior in regset section + names. */ + set_gdbarch_core_reg_section_encodes_pid (gdbarch, 1); } |