diff options
author | Ciro Santilli <ciro.santilli@arm.com> | 2019-10-08 14:31:47 +0100 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@arm.com> | 2019-11-26 12:46:59 +0000 |
commit | 105b2c8914946867f040caf6a8ff7da3c5d028d7 (patch) | |
tree | 63ed34a98e44bfeb7d5a10820f7fc2002a0fdef8 /src/base/SConscript | |
parent | e82a6f32cb3432566bbe9f00bc93e3b14f8db998 (diff) | |
download | gem5-105b2c8914946867f040caf6a8ff7da3c5d028d7.tar.xz |
base: add the --debug-flag to DPRINTF output with FmtFlag
This makes it easier to determine which messages come from which
flags when enabling multiple flags at once.
This commit covers the bulk of the debug messages, which use the DPRINTF*
family of macros. There however macros that use DTRACE to check for
enable, those will be covered in future patches.
Change-Id: I6738b18f08ccfd1e11f2874b426c1827b42e82a2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22004
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/base/SConscript')
-rw-r--r-- | src/base/SConscript | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/SConscript b/src/base/SConscript index fe92b4387..5bf0633a9 100644 --- a/src/base/SConscript +++ b/src/base/SConscript @@ -111,6 +111,7 @@ GTest('chunk_generator.test', 'chunk_generator.test.cc') DebugFlag('Annotate', "State machine annotation debugging") DebugFlag('AnnotateQ', "State machine annotation queue debugging") DebugFlag('AnnotateVerbose', "Dump all state machine annotation details") +DebugFlag('FmtFlag', "Show the --debug-flag that enabled each debug message") DebugFlag('GDBAcc', "Remote debugger accesses") DebugFlag('GDBExtra', "Dump extra information on reads and writes") DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.") |