[gdb/symtab] Trust epilogue unwind info for unknown producer (-g0 case)
authorTom de Vries <tdevries@suse.de>
Mon, 20 Feb 2023 11:20:14 +0000 (12:20 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 20 Feb 2023 11:20:14 +0000 (12:20 +0100)
commit8908d9c45cde37c8a7840db80091b1190f209c8f
treeac3835492fd9e3192b9b312745943193da07f667
parent5aca7eaa2be78b5bb9f993b901b32acef51e5c45
[gdb/symtab] Trust epilogue unwind info for unknown producer (-g0 case)

For a -g0 -fasynchronous-unwind-tables exec (without .debug_info but with
.eh_frame section), start using the dwarf2 unwinder instead of the
"amd64 epilogue override" unwinder, by returning true in
compunit_epilogue_unwind_valid for cust == nullptr.

This has effect both on the amd64 and i386 targets, but only add amd64
test-case gdb.base/unwind-on-each-insn-amd64-2.exp.
gdb/symtab.h
gdb/testsuite/gdb.base/unwind-on-each-insn-amd64-2.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/unwind-on-each-insn-amd64-2.s [new file with mode: 0644]