Yu-hsin Wang has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/48825 )

Change subject: base: improve gdb exception information
......................................................................

base: improve gdb exception information

Even it is an unknow exception for GDB, we still can try to cast it
to std::exception and print some information from `what()`.

Change-Id: Ie0cdc978eb1b3e130bc2153eae99025dcd0109f7
---
M src/base/remote_gdb.cc
1 file changed, 2 insertions(+), 0 deletions(-)



diff --git a/src/base/remote_gdb.cc b/src/base/remote_gdb.cc
index ac3c811..9fe872e 100644
--- a/src/base/remote_gdb.cc
+++ b/src/base/remote_gdb.cc
@@ -557,6 +557,8 @@
             send("");
         } catch (CmdError &e) {
             send(e.error);
+        } catch (std::exception &e) {
+            panic("Unrecognzied GDB exception. what=%s", e.what());
         } catch (...) {
             panic("Unrecognzied GDB exception.");
         }

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48825
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie0cdc978eb1b3e130bc2153eae99025dcd0109f7
Gerrit-Change-Number: 48825
Gerrit-PatchSet: 1
Gerrit-Owner: Yu-hsin Wang <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to