From: Qwinci Date: Tue, 18 Feb 2025 18:47:51 +0000 (+0200) Subject: gdb/remote: don't error if qGetTIBAddr is unsupported X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df50675d4ef54858947c2069529eb8cd4401b813;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/remote.c b/gdb/remote.c index 98a94fa0580..46359400fb2 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; }