]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/remote: don't error if qGetTIBAddr is unsupported
authorQwinci <qwinci222@gmail.com>
Tue, 18 Feb 2025 18:47:51 +0000 (20:47 +0200)
committerTom Tromey <tromey@adacore.com>
Wed, 19 Feb 2025 15:58:27 +0000 (08:58 -0700)
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>
gdb/remote.c

index 98a94fa05802a0bd68e7ebb05a89303f3dc1c37d..46359400fb23de57eeb6463abd66baf5555a7e5c 100644 (file)
@@ -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;
 }