Ciro Santilli has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/15255
Change subject: scons: add helpers to access GDB XML description files
......................................................................
scons: add helpers to access GDB XML description files
Change-Id: Ic3b18887544b7710ed07a86d28dc62d8441b3476
---
M SConstruct
M src/SConscript
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/SConstruct b/SConstruct
index 0a8cd0e..4180218 100755
--- a/SConstruct
+++ b/SConstruct
@@ -1079,6 +1079,9 @@
main.SConscript(joinpath(root, 'SConscript'),
variant_dir=joinpath(build_root, build_dir))
+gdb_xml_dir = joinpath(ext_dir, 'gdb-xml')
+Export('gdb_xml_dir')
+
main.Prepend(CPPPATH=Dir('ext/pybind11/include/'))
###################################################
diff --git a/src/SConscript b/src/SConscript
old mode 100755
new mode 100644
index 1943d46..9b93d05
--- a/src/SConscript
+++ b/src/SConscript
@@ -293,6 +293,9 @@
MakeAction(embedBlob, Transform("EMBED BLOB")))
Source(cpp_path)
+def GdbXml(xml_id, symbol):
+ Blob(joinpath(gdb_xml_dir, xml_id), symbol)
+
class Source(SourceFile):
ungrouped_tag = 'No link group'
source_groups = set()
@@ -522,6 +525,7 @@
# Children should have access
Export('Blob')
+Export('GdbXml')
Export('Source')
Export('PySource')
Export('SimObject')
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/15255
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ic3b18887544b7710ed07a86d28dc62d8441b3476
Gerrit-Change-Number: 15255
Gerrit-PatchSet: 1
Gerrit-Owner: Ciro Santilli <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev