panda: fix in breakpoints aspect
Halt condition type not properly set Change-Id: I17c780216606b89a7c8a0ace03ac3788582d95ac
This commit is contained in:
@ -38,36 +38,11 @@ aspect PandaBreakpoints
|
|||||||
} else {
|
} else {
|
||||||
hc.type = HALT_TYPE_BP;
|
hc.type = HALT_TYPE_BP;
|
||||||
}
|
}
|
||||||
hc.type = HALT_TYPE_BP;
|
|
||||||
hc.address = m_WatchInstrPtr;
|
hc.address = m_WatchInstrPtr;
|
||||||
hc.addr_len= 4; // Thumb? => 2
|
hc.addr_len= 4; // Thumb? => 2
|
||||||
oocdw_delete_halt_condition(&hc);
|
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
|
#endif // BUILD_PANDA && CONFIG_EVENT_BREAKPOINTS
|
||||||
|
|||||||
Reference in New Issue
Block a user