summaryrefslogtreecommitdiff
path: root/gold/icf.cc
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2016-10-21 17:47:15 +0200
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2016-10-21 17:47:15 +0200
commitd11261fc63ecbf9f3487be906a4e720b4b20fb42 (patch)
tree7fa8f2c2651f98de2d5c8ec2db99fcaecb786a66 /gold/icf.cc
parent4db41a0a1097860d1e0d3b8ecf6c01dbbb65ba5a (diff)
downloadbinutils-gdb-d11261fc63ecbf9f3487be906a4e720b4b20fb42.tar.gz
Fix symbol table file name on AIX
When xlc -qfuncsect or gcc -ffunction-sections options is used in AIX, each function csect is 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. gdb/ 2016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> Ulrich Weigand <uweigand@de.ibm.com> * xcoffread.c (read_xcoff_symtab): Make name of current file as pst->filename instead of _start_ in AIX. Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Diffstat (limited to 'gold/icf.cc')
0 files changed, 0 insertions, 0 deletions