Jan Vrany has submitted this change. ( https://gem5-review.googlesource.com/c/public/gem5/+/48184 )

Change subject: base: Only trap to GDB if remote GDB is connected
......................................................................

base: Only trap to GDB if remote GDB is connected

Change-Id: I3a82dc0f3e4f99dd1acfe99c1eb8caaae495e384
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/48184
Maintainer: Bobby R. Bruce <[email protected]>
Tested-by: kokoro <[email protected]>
Reviewed-by: Boris Shingarov <[email protected]>
---
M src/sim/workload.cc
1 file changed, 14 insertions(+), 1 deletion(-)

Approvals:
  Boris Shingarov: Looks good to me, approved
  Bobby R. Bruce: Looks good to me, approved
  kokoro: Regressions pass




diff --git a/src/sim/workload.cc b/src/sim/workload.cc
index e9529be..af10cb8 100644
--- a/src/sim/workload.cc
+++ b/src/sim/workload.cc
@@ -80,7 +80,7 @@
 Workload::trapToGdb(int signal, ContextID ctx_id)
 {
 #   if !IS_NULL_ISA
-    if (gdb) {
+    if (gdb && gdb->isAttached()) {
         gdb->trap(ctx_id, signal);
         return true;
     }

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48184
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: I3a82dc0f3e4f99dd1acfe99c1eb8caaae495e384
Gerrit-Change-Number: 48184
Gerrit-PatchSet: 6
Gerrit-Owner: Jan Vrany <[email protected]>
Gerrit-Reviewer: Bobby R. Bruce <[email protected]>
Gerrit-Reviewer: Boris Shingarov <[email protected]>
Gerrit-Reviewer: Ciro Santilli <[email protected]>
Gerrit-Reviewer: Daniel Carvalho <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jan Vrany <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
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