]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: Test for a backtrace through object without debuginfo
authorGuinevere Larsen <guinevere@redhat.com>
Thu, 14 Mar 2024 15:14:29 +0000 (16:14 +0100)
committerGuinevere Larsen <guinevere@redhat.com>
Fri, 17 Jan 2025 14:49:16 +0000 (11:49 -0300)
commit8226e5c2ef56dbacb18edbc1453fbb930eaa0c62
tree39f1d20ec0f4d2fbe6f744d75ebc868cb50c1a55
parentb49f56d0aa0bcd8d73e87e6e17ff4fb0efa4c090
gdb/testsuite: Test for a backtrace through object without debuginfo

Fedora has been carrying this test since back in the Project Archer
days. A change back then caused GDB to stop being able to backtrace when
only some of the object files had debug information. Even though the
changed code never seems to have made its way into the main GDB project,
I think it makes sense to bring the test along to ensure something like
this doesn't pass unnoticed.

Co-Authored-By: Jan Kratochvil <jan@jankratochvil.net>
Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/testsuite/gdb.base/backtrace-through-cu-nodebug-caller.c [new file with mode: 0644]
gdb/testsuite/gdb.base/backtrace-through-cu-nodebug-main.c [new file with mode: 0644]
gdb/testsuite/gdb.base/backtrace-through-cu-nodebug.exp [new file with mode: 0644]