diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-10-08 12:28:19 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-10-11 18:35:39 +0100 |
commit | 9370fd51ebfca8a8acacaecb92c57ee54f4f8382 (patch) | |
tree | d36933bddea27597c50b9fa5680dfc7136f369a6 /gdb/sparc-netbsd-nat.c | |
parent | f7c1edaa78ed5ef18ba1e290effd76ecc49884d2 (diff) | |
download | binutils-9370fd51ebfca8a8acacaecb92c57ee54f4f8382.zip binutils-9370fd51ebfca8a8acacaecb92c57ee54f4f8382.tar.gz binutils-9370fd51ebfca8a8acacaecb92c57ee54f4f8382.tar.bz2 |
gdb: detect main function even when there's no matching msymbol
Currently, GDB will only stop the backtrace at the main function if
there is a minimal symbol with the matching name. In Fortran programs
compiled with gfortran this is not the case. The main function is
present in the DWARF, and as marked as DW_AT_main_subprogram, but
there's no minimal symbol.
This commit extends `inside_main_func` to check the full symbols if no
matching minimal symbol is found.
There's an updated test case that covers this change.
gdb/ChangeLog:
* frame.c (inside_main_func): Check full symbols as well as
minimal symbols.
gdb/testsuite/ChangeLog:
* gdb.fortran/mixed-lang-stack.exp (run_tests): Update expected
output of backtrace.
Diffstat (limited to 'gdb/sparc-netbsd-nat.c')
0 files changed, 0 insertions, 0 deletions