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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -222,7 +222,6 @@ EventQueue::dump()
|
||||
cprintf("============================================================\n");
|
||||
}
|
||||
|
||||
extern "C"
|
||||
void
|
||||
dumpMainQueue()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user