remove the extern C around gdb helper functions. It's need needed for any new version...
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 12 Mar 2007 21:23:08 +0000 (17:23 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 12 Mar 2007 21:23:08 +0000 (17:23 -0400)
--HG--
extra : convert_revision : 5e4c2ec753372fd0569734d3ddb0c8690409ca16

src/base/trace.cc
src/cpu/pc_event.cc
src/sim/eventq.cc

index 2dde1f6886c54ca20e0cb515270b3ab6362ce70a..0a7e6e83344bd71c9fbdebaa3ea59c3c03a1f872 100644 (file)
@@ -192,22 +192,20 @@ dumpStatus()
 
 
 // add a set of functions that can easily be invoked from gdb
-extern "C" {
-    void
-    setTraceFlag(const char *string)
-    {
-        Trace::changeFlag(string, true);
-    }
+void
+setTraceFlag(const char *string)
+{
+    Trace::changeFlag(string, true);
+}
 
-    void
-    clearTraceFlag(const char *string)
-    {
-        Trace::changeFlag(string, false);
-    }
+void
+clearTraceFlag(const char *string)
+{
+    Trace::changeFlag(string, false);
+}
 
-    void
-    dumpTraceStatus()
-    {
-        Trace::dumpStatus();
-    }
-/* extern "C" */ }
+void
+dumpTraceStatus()
+{
+    Trace::dumpStatus();
+}
index 7ab8bfcb88f0cef772860ede30d1082414d114bc..438218df2c9d0b1890edc18f653245f34f92f8d6 100644 (file)
@@ -138,14 +138,12 @@ BreakPCEvent::process(ThreadContext *tc)
 }
 
 #if FULL_SYSTEM
-extern "C"
 void
 sched_break_pc_sys(System *sys, Addr addr)
 {
     new BreakPCEvent(&sys->pcEventQueue, "debug break", addr, true);
 }
 
-extern "C"
 void
 sched_break_pc(Addr addr)
 {
index bcd0d3df3f4e287b3f9689fcadfa8b0f5f19281d..65e115256e8c992144830b23be858cb971c0bbe3 100644 (file)
@@ -222,7 +222,6 @@ EventQueue::dump()
     cprintf("============================================================\n");
 }
 
-extern "C"
 void
 dumpMainQueue()
 {