From 105b2c8914946867f040caf6a8ff7da3c5d028d7 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Tue, 8 Oct 2019 14:31:47 +0100 Subject: 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 Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/base/SConscript | 1 + 1 file changed, 1 insertion(+) (limited to 'src/base/SConscript') 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.") -- cgit v1.2.3