This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi All, Please review and let me know the comments. Thanks & Regards, -Sangamesh AIX BOS Development From: Sangamesh Mallayya/India/IBM To: gdb-patches@sourceware.org Date: 11/09/2015 12:23 PM Subject: Re: [PATCH] Read correct xcoff auxilliary entry 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
Attachment:
ChangeLog
Description: Binary data
Attachment:
xcoffread_symtab.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |