Kai Ren has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/48944 )

Change subject: configs: Add --wait-gdb option to fs.py
......................................................................

configs: Add --wait-gdb option to fs.py

Change-Id: Ib3174927ccc65ce1ddce450ce6020f74ea60d366
---
M configs/common/Options.py
M configs/example/fs.py
2 files changed, 8 insertions(+), 0 deletions(-)



diff --git a/configs/common/Options.py b/configs/common/Options.py
index 31ac120..7d72d4a 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -533,3 +533,7 @@
     parser.add_argument(
         "--command-line-file", action="store", default=None, type=str,
         help="File with a template for the kernel command line")
+
+    # Debug option
+    parser.add_argument("--wait-gdb", default=False, action='store_true',
+                        help="Wait for remote GDB to connect.")
diff --git a/configs/example/fs.py b/configs/example/fs.py
index 528b952..1339df1 100644
--- a/configs/example/fs.py
+++ b/configs/example/fs.py
@@ -383,5 +383,9 @@
                 os.path.join(m5.options.outdir, '%s.dtb' % sysname)
             sys.generateDtb(sys.workload.dtb_filename)

+if args.wait_gdb:
+    for cpu in test_sys.cpu:
+        cpu.wait_for_remote_gdb = True
+
 Simulation.setWorkCountOptions(test_sys, args)
 Simulation.run(args, root, test_sys, FutureClass)

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/48944
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: Ib3174927ccc65ce1ddce450ce6020f74ea60d366
Gerrit-Change-Number: 48944
Gerrit-PatchSet: 1
Gerrit-Owner: Kai Ren <[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