aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2021-11-23 20:35:12 +0000
committerPedro Alves <pedro@palves.net>2023-11-13 14:16:10 +0000
commit393a6b5947d037a55ce1b57474e1ffb3074f544e (patch)
treed01e7d6773f733872e91feebab617b3638e00ccd /gdb
parent25b16bc9e791d53028c3c180125a80f345b97d94 (diff)
downloadgdb-393a6b5947d037a55ce1b57474e1ffb3074f544e.zip
gdb-393a6b5947d037a55ce1b57474e1ffb3074f544e.tar.gz
gdb-393a6b5947d037a55ce1b57474e1ffb3074f544e.tar.bz2
Thread options & clone events (Linux GDBserver)
This patch teaches the Linux GDBserver backend to report clone events to GDB, when GDB has requested them with the GDB_THREAD_OPTION_CLONE thread option, via the new QThreadOptions packet. This shuffles code in linux_process_target::handle_extended_wait around to a more logical order when we now have to handle and potentially report all of fork/vfork/clone. Raname lwp_info::fork_relative -> lwp_info::relative as the field is no longer only about (v)fork. With this, gdb.threads/stepi-over-clone.exp now cleanly passes against GDBserver, so remove the native-target-only requirement from that testcase. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19675 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27830 Reviewed-By: Andrew Burgess <aburgess@redhat.com> Change-Id: I3a19bc98801ec31e5c6fdbe1ebe17df855142bb2
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.threads/stepi-over-clone.exp6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.threads/stepi-over-clone.exp b/gdb/testsuite/gdb.threads/stepi-over-clone.exp
index e580f22..4c49642 100644
--- a/gdb/testsuite/gdb.threads/stepi-over-clone.exp
+++ b/gdb/testsuite/gdb.threads/stepi-over-clone.exp
@@ -19,12 +19,6 @@
# disassembly output. For now this is only implemented for x86-64.
require {istarget x86_64-*-*}
-# Test only on native targets, for now.
-proc is_native_target {} {
- return [expr {[target_info gdb_protocol] == ""}]
-}
-require is_native_target
-
standard_testfile
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \