panda: fix in breakpoints aspect

Halt condition type not properly set

Change-Id: I17c780216606b89a7c8a0ace03ac3788582d95ac
This commit is contained in:
Lars Rademacher
2013-10-30 12:53:36 +01:00
parent 98a478badd
commit d4776cf628

View File

@ -38,36 +38,11 @@ aspect PandaBreakpoints
} else {
hc.type = HALT_TYPE_BP;
}
hc.type = HALT_TYPE_BP;
hc.address = m_WatchInstrPtr;
hc.addr_len= 4; // Thumb? => 2
oocdw_delete_halt_condition(&hc);
}
};
#if defined(CONFIG_EVENT_BREAKPOINTS_RANGE)
#error Range Breakpoints not yet implemented for Pandaboard
advice "fail::BPRangeListener" : slice class
{
public:
bool onAddition()
{
// Calculate address range
address_t range = m_WatchEndAddr - m_WatchStartAddr; // range / sizeof(address_t) ??!
// ToDo: Setup MMU to watch address range
}
void onDeletion()
{
// Calculate address range
address_t range = m_WatchEndAddr - m_WatchStartAddr; // range / sizeof(address_t) ??!
// ToDo: Setup MMU to no longer watch address range
}
};
#endif // CONFIG_EVENT_BREAKPOINTS_RANGE
};
#endif // BUILD_PANDA && CONFIG_EVENT_BREAKPOINTS