aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-lang.c
diff options
context:
space:
mode:
authorGuinevere Larsen <blarsen@redhat.com>2023-08-24 11:00:35 +0200
committerGuinevere Larsen <blarsen@redhat.com>2024-01-24 13:53:34 +0100
commit8669a8b67408c11d6bf77a09c6aa733f7150abed (patch)
tree260973c542c45fc8b3fbf8ef4a5b06c0559be1ef /gdb/f-lang.c
parentf895041bb9c6b05ddb457ce24fd8cb33880fe375 (diff)
downloadbinutils-8669a8b67408c11d6bf77a09c6aa733f7150abed.zip
binutils-8669a8b67408c11d6bf77a09c6aa733f7150abed.tar.gz
binutils-8669a8b67408c11d6bf77a09c6aa733f7150abed.tar.bz2
gdb/testsuite: add test for backtracing for threaded inferiors from a corefile
This patch is based on an out-of-tree patch that fedora has been carrying for a while. It tests if GDB is able to properly unwind a threaded program in the following situations: * regular threads * in a signal handler * in a signal handler executing on an alternate stack And the final frame can either be in a syscall or in an infinite loop. The test works by running the inferior until a crash to generate a corefile, or until right before the crash. Then applies a backtrace to all threads to see if any frame can't be identified, and the order of the threads in GDB. Finally, it goes thread by thread and tries to collect a large part of the backtrace, to confirm that everything is being unwound correctly. Co-Authored-By: Andrew Burgess <aburgess@redhat.com> Reviewed-By: Luis Machado <luis.machado@arm.com> Approved-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'gdb/f-lang.c')
0 files changed, 0 insertions, 0 deletions