diff options
author | Pedro Alves <pedro@codesourcery.com> | 2009-02-16 03:16:22 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2009-02-16 03:16:22 +0000 |
commit | 58f069edbd6baf1fe200ab72de2e423429dba100 (patch) | |
tree | 24c2052e064ea874ff6f023fc632ac244373b120 /gdb/sparc64-sol2-tdep.c | |
parent | fabdb985649e3590f792033892b2df4f9a83b91a (diff) | |
download | gdb-58f069edbd6baf1fe200ab72de2e423429dba100.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/sparc64-sol2-tdep.c')
-rw-r--r-- | gdb/sparc64-sol2-tdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/sparc64-sol2-tdep.c b/gdb/sparc64-sol2-tdep.c index 4af28078865..e5800cc98e6 100644 --- a/gdb/sparc64-sol2-tdep.c +++ b/gdb/sparc64-sol2-tdep.c @@ -180,6 +180,10 @@ sparc64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* Solaris has kernel-assisted single-stepping support. */ set_gdbarch_software_single_step (gdbarch, NULL); + + /* Solaris encodes the pid of the inferior in regset section + names. */ + set_gdbarch_core_reg_section_encodes_pid (gdbarch, 1); } |