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:
parent
885b4f26bb
commit
8d38dd3231
3 changed files with 15 additions and 20 deletions
|
@ -192,22 +192,20 @@ dumpStatus()
|
||||||
|
|
||||||
|
|
||||||
// add a set of functions that can easily be invoked from gdb
|
// add a set of functions that can easily be invoked from gdb
|
||||||
extern "C" {
|
void
|
||||||
void
|
setTraceFlag(const char *string)
|
||||||
setTraceFlag(const char *string)
|
{
|
||||||
{
|
Trace::changeFlag(string, true);
|
||||||
Trace::changeFlag(string, true);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
clearTraceFlag(const char *string)
|
clearTraceFlag(const char *string)
|
||||||
{
|
{
|
||||||
Trace::changeFlag(string, false);
|
Trace::changeFlag(string, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
dumpTraceStatus()
|
dumpTraceStatus()
|
||||||
{
|
{
|
||||||
Trace::dumpStatus();
|
Trace::dumpStatus();
|
||||||
}
|
}
|
||||||
/* extern "C" */ }
|
|
||||||
|
|
|
@ -138,14 +138,12 @@ BreakPCEvent::process(ThreadContext *tc)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FULL_SYSTEM
|
#if FULL_SYSTEM
|
||||||
extern "C"
|
|
||||||
void
|
void
|
||||||
sched_break_pc_sys(System *sys, Addr addr)
|
sched_break_pc_sys(System *sys, Addr addr)
|
||||||
{
|
{
|
||||||
new BreakPCEvent(&sys->pcEventQueue, "debug break", addr, true);
|
new BreakPCEvent(&sys->pcEventQueue, "debug break", addr, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C"
|
|
||||||
void
|
void
|
||||||
sched_break_pc(Addr addr)
|
sched_break_pc(Addr addr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -222,7 +222,6 @@ EventQueue::dump()
|
||||||
cprintf("============================================================\n");
|
cprintf("============================================================\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C"
|
|
||||||
void
|
void
|
||||||
dumpMainQueue()
|
dumpMainQueue()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue