summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-03-12 17:23:08 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-03-12 17:23:08 -0400
commit8d38dd32311468254c0839ae8f0797f3f824df05 (patch)
tree205c0604c493cb10dd43fd9dc52878a9cb42b7c3 /src/base
parent885b4f26bb105bf9ad87c252b5bd24e83730fc3c (diff)
downloadgem5-8d38dd32311468254c0839ae8f0797f3f824df05.tar.xz
remove the extern C around gdb helper functions. It's need needed for any new version of gdb to work and it causes at least mine to segfault
--HG-- extra : convert_revision : 5e4c2ec753372fd0569734d3ddb0c8690409ca16
Diffstat (limited to 'src/base')
-rw-r--r--src/base/trace.cc32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/base/trace.cc b/src/base/trace.cc
index 2dde1f688..0a7e6e833 100644
--- a/src/base/trace.cc
+++ b/src/base/trace.cc
@@ -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();
+}