[binutils-gdb] gdb/remote: don't error if qGetTIBAddr is unsupported

Tom Tromey tromey@sourceware.org
Wed Feb 19 16:03:58 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=df50675d4ef54858947c2069529eb8cd4401b813

commit df50675d4ef54858947c2069529eb8cd4401b813
Author: Qwinci <qwinci222@gmail.com>
Date:   Tue Feb 18 20:47:51 2025 +0200

    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>

Diff:
---
 gdb/remote.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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;
 }


More information about the Gdb-cvs mailing list