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
|
||||
extern "C" {
|
||||
void
|
||||
setTraceFlag(const char *string)
|
||||
{
|
||||
void
|
||||
setTraceFlag(const char *string)
|
||||
{
|
||||
Trace::changeFlag(string, true);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
clearTraceFlag(const char *string)
|
||||
{
|
||||
void
|
||||
clearTraceFlag(const char *string)
|
||||
{
|
||||
Trace::changeFlag(string, false);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
dumpTraceStatus()
|
||||
{
|
||||
void
|
||||
dumpTraceStatus()
|
||||
{
|
||||
Trace::dumpStatus();
|
||||
}
|
||||
/* extern "C" */ }
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue