[PATCH] Read correct xcoff auxilliary entry
Sangamesh Mallayya
sangamesh.swamy@in.ibm.com
Mon Nov 9 07:07:00 GMT 2015
Hi All,
Please review the patches and let me know the comments.
Thanks & Regards,
-Sangamesh
Sangamesh Mallayya/India/IBM
11/02/2015 11:28 PM
To
gdb-patches@sourceware.org,
cc
Subject
[PATCH] Read correct xcoff auxilliary entry
Hi All,
Attached patch resolves the below errors in case of debugging XCOFF in
AIX.
=> warning: (Internal error: pc 0x10000380 in read in psymtab, but not in
symtab.)
=> Read the correct filename if the binary is compiled with -qfuncsect
option.
(gdb) br main
Breakpoint 1 at 0x10000394: file __start__, line 24.
And also has the fix to skip reading symbols starting with @Fix.
Symbols starting with '@FIX' are used for TOC reference and need to be
skipped.
Make name of current file as pst->filename instead of _start_ as this does
not handle the case when there are multiple auxillary entries,
eg: when compiled with 'xlc -qfuncsect' option.
We also need to read the correct auxillary entry.
i.e
bfd_coff_swap_aux_in (abfd,
raw_auxptr + ((coff_data
(abfd)->local_symesz) * (cs->c_naux - 1)),
cs->c_type, cs->c_sclass, cs->c_naux
- 1,
cs->c_naux, &main_aux);
Thanks & Regards,
-Sangamesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog
Type: application/octet-stream
Size: 260 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20151109/6861db89/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xcoffread_symtab.patch
Type: application/octet-stream
Size: 2378 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20151109/6861db89/attachment-0001.obj>
More information about the Gdb-patches
mailing list