]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/infcall.c
gdb: introduce unwind-on-timeout setting
authorAndrew Burgess <aburgess@redhat.com>
Wed, 18 Jan 2023 10:17:57 +0000 (10:17 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 25 Mar 2024 17:25:07 +0000 (17:25 +0000)
commitfe67b24240d7a679904c5bef3a7e911a09ea7739
tree7301f3990b22237c0e1672e714d4b3e4f037a241
parent29f7ef927ad1ead740c7f4e3ae1375bff7e9a7e4
gdb: introduce unwind-on-timeout setting

Now that inferior function calls can timeout (see the recent
introduction of direct-call-timeout and indirect-call-timeout), this
commit adds a new setting unwind-on-timeout.

This new setting is just like the existing unwindonsignal and
unwind-on-terminating-exception, but the new setting will cause GDB to
unwind the stack if an inferior function call times out.

The existing inferior function call timeout tests have been updated to
cover the new setting.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Tested-By: Luis Machado <luis.machado@arm.com>
Tested-By: Keith Seitz <keiths@redhat.com>
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/infcall.c
gdb/testsuite/gdb.base/infcall-timeout.exp
gdb/testsuite/gdb.threads/infcall-from-bp-cond-timeout.exp