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
This commit is contained in:
Ali Saidi 2007-03-12 17:23:08 -04:00
parent 885b4f26bb
commit 8d38dd3231
3 changed files with 15 additions and 20 deletions

View 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();
}

View 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)
{

View file

@ -222,7 +222,6 @@ EventQueue::dump()
cprintf("============================================================\n");
}
extern "C"
void
dumpMainQueue()
{