本文整理匯總了C++中Breakpoint::getAddress方法的典型用法代碼示例。如果您正苦於以下問題:C++ Breakpoint::getAddress方法的具體用法?C++ Breakpoint::getAddress怎麽用?C++ Breakpoint::getAddress使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Breakpoint
的用法示例。
在下文中一共展示了Breakpoint::getAddress方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: initBlockMap
/**
* Takes the active breakpoints to create a map that is used to count
* breakpoint hits and how much time is spent in blocks.
**/
std::map<Offset, TimedBlock*> initBlockMap()
{
std::map<Offset, TimedBlock*> timedBlocks;
IdaFile file = IdaFile();
Debugger debugger = file.getDebugger();
// Initialize the time of each basic block to 0
for (unsigned int i=0;i<debugger.getNumberOfBreakpoints();i++)
{
Breakpoint bp = debugger.getBreakpoint(i);
Offset breakpointAddress = bp.getAddress();
timedBlocks[breakpointAddress] = new TimedBlock(breakpointAddress);
}
return timedBlocks;
}