aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-gdb.py
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-04-18 00:25:09 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-04-18 00:25:09 +0000
commitec92004f95c084527fcff50653aeb76ba9453b5f (patch)
tree65d92b44027310cd6255cbcb1fdc76622e3a6469 /gdb/gdb-gdb.py
parent40301fb7ad85711ccd7e14cce8d8bc76510b6798 (diff)
downloadbinutils-ec92004f95c084527fcff50653aeb76ba9453b5f.zip
binutils-ec92004f95c084527fcff50653aeb76ba9453b5f.tar.gz
binutils-ec92004f95c084527fcff50653aeb76ba9453b5f.tar.bz2
pspace != NULL failed assertion on ppc-aix
This patch fixes the following problem: % gdb foo (gdb) b main /[...]/progspace.c:216: internal-error: set_current_program_space: Assertion `pspace != NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) The problem happens when we try to get the program space from a minimal symbol. For that, we go through the minimal symbol's obj_section->objfile->pspace. But the minimal symbol's obj_section is not set, and thus we somehow get a NULL program space. And the reason why the obj_section is not set is because the XCOFF reader did not pass the bfd_section when calling minsyms.c's prim_record_minimal_symbol_and_info. gdb/ChangeLog: * xcoffread.c (xcoff_secnum_to_sections): New function. (secnum_to_section, secnum_to_bfd_section): Reimplement using xcoff_secnum_to_sections. Rename "secnum" parameter into "n_scnum". (RECORD_MINIMAL_SYMBOL): Delete. (record_minimal_symbol): New function. (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL by call to record_minimal_symbol and set misc_func_recorded to 1. Set last_csect_sec to the XCOFF section index instead of GDB's section_offset index. Update calls to prim_record_minimal_symbol_and_info to pass the BFD section as well.
Diffstat (limited to 'gdb/gdb-gdb.py')
0 files changed, 0 insertions, 0 deletions