T32: Breakpoint test code

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2107 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hoffmann
2013-02-16 23:05:07 +00:00
parent 6761268d93
commit 205c7ec919
4 changed files with 35 additions and 29 deletions

View File

@ -17,16 +17,14 @@ aspect T32Listener
bool onAddition()
{
// Setup Breakpoint in T32
std::cout << "T32Listener::onAddition" << std::endl;
// Enable Breakpoint
T32_WriteBreakpoint( m_WatchInstrPtr, T32::MEMACCESS::PROGRAM, T32::BP::EXECUTION, 1);
return true;
return T32_WriteBreakpoint( m_WatchInstrPtr, T32::MEMACCESS::PROGRAM, T32::BP::EXECUTION, 1) == 0;
}
void onDeletion()
{
// Delete Breakpoint in T32
T32_WriteBreakpoint( m_WatchInstrPtr, T32::MEMACCESS::PROGRAM, T32::BP::CLEAR, 1);
// TODO Error handling
}
};
};