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]

[PATCH] Make name of current file as pst->filename instead of _start_ in AIX


Hi,

When -qfuncsect xlc or -ffunction-section gcc compiler option is used in 
AIX, each function csect will be associated with each psymtab,
so each psymtab will have it's corresponding filename entries set.

If the pst filename isn't set then we will be seeing the below output when 
we set a breakpoint.

(gdb) br main
Breakpoint 1 at 0x10000374: file  _start_ , line 18.

With the fix it will be.

(gdb) br main
Breakpoint 1 at 0x10000518: file test.c, line 24.

Attached patch resolve this issue and correct filename will be set.

Here is the summary of regression run with both xlc/gcc compiler.

gcc with -ffunction-sections and without pst filename change
------------------------------------------------------------
# of expected passes            7469
# of unexpected failures        4104
# of unexpected successes       1
# of expected failures          13
# of unresolved testcases       4
# of untested testcases         54
# of unsupported tests          30

gcc with -ffunction-sections and with pst filename change
---------------------------------------------------------
# of expected passes            8608
# of unexpected failures        3085
# of unexpected successes       1
# of expected failures          14
# of unresolved testcases       4
# of untested testcases         58
# of unsupported tests          30


xlc with -qfuncsect and without pst filename change
---------------------------------------------------
# of expected passes            2779
# of unexpected failures        2721
# of expected failures          10
# of unresolved testcases       71
# of untested testcases         92
# of unsupported tests          15

xlc with -qfuncsect and with pst filename change
------------------------------------------------
# of expected passes            2795
# of unexpected failures        2704
# of expected failures          10
# of unresolved testcases       72
# of untested testcases         92
# of unsupported tests          15




Thanks,
-Sangamesh

Attachment: ChangeLog
Description: Binary data

Attachment: pst_file.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]