changeset c94060248b3e in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=c94060248b3e
description:
        debug : Fixes the issue wherein Debug symbols were not getting dumped 
into trace files for SE mode

diffstat:

 src/cpu/exetrace.cc |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 13ffc0066b76 -r c94060248b3e src/cpu/exetrace.cc
--- a/src/cpu/exetrace.cc       Thu Jul 11 21:57:04 2013 -0500
+++ b/src/cpu/exetrace.cc       Mon Jul 15 11:08:34 2013 -0400
@@ -83,8 +83,9 @@
     std::string sym_str;
     Addr sym_addr;
     Addr cur_pc = pc.instAddr();
-    if (debugSymbolTable && Debug::ExecSymbol && !inUserMode(thread)
-        && debugSymbolTable->findNearestSymbol(cur_pc, sym_str, sym_addr)) {
+    if (debugSymbolTable && Debug::ExecSymbol &&
+            (!FullSystem || !inUserMode(thread)) &&
+            debugSymbolTable->findNearestSymbol(cur_pc, sym_str, sym_addr)) {
         if (cur_pc != sym_addr)
             sym_str += csprintf("+%d",cur_pc - sym_addr);
         outs << "@" << sym_str;
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to