aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQwinci <qwinci222@gmail.com>2025-02-18 20:47:51 +0200
committerTom Tromey <tromey@adacore.com>2025-02-19 08:58:27 -0700
commitdf50675d4ef54858947c2069529eb8cd4401b813 (patch)
tree1b826e2039c9468b9e2d73e33130716117ab98c3
parent405836704bd4ce297194e12cfe11a08fe89d03f9 (diff)
downloadbinutils-df50675d4ef54858947c2069529eb8cd4401b813.zip
binutils-df50675d4ef54858947c2069529eb8cd4401b813.tar.gz
binutils-df50675d4ef54858947c2069529eb8cd4401b813.tar.bz2
gdb/remote: don't error if qGetTIBAddr is unsupported
This change makes it possible to debug PE executables run in e.g. Qemu without needing to set osabi to none, it breaks backtrace and commands like finish if frame pointers are not present but SEH unwind info is. Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r--gdb/remote.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 98a94fa..4635940 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -12502,14 +12502,12 @@ remote_target::get_tib_address (ptid_t ptid, CORE_ADDR *addr)
return true;
}
else if (result.status () == PACKET_UNKNOWN)
- error (_("Remote target doesn't support qGetTIBAddr packet"));
+ return false;
else
error (_("Remote target failed to process qGetTIBAddr request, %s"),
result.err_msg ());
}
- else
- error (_("qGetTIBAddr not supported or disabled on this target"));
- /* Not reached. */
+
return false;
}