Menu

#3 Breakpoin enable

open
nobody
None
5
2009-09-18
2009-09-18
Anonymous
No

Please add breakpoint enable command (BE) such as BD command
bool OllyLang::DoBE(string args)
{
if (args=="")
return DoBEA(args);

string ops[1];
if (!CreateOperands(args, ops, 1))
return false;

ulong dw;
if(GetDWOpValue(ops[0], dw))
{
Setbreakpoint(dw, TY_ACTIVE, 0);
Broadcast(WM_USER_CHALL, 0, 0);
require_ollyloop = 1;
return true;
}
return false;
}

//enable all loaded breakpoints
bool OllyLang::DoBEA(string args)
{
t_table *bptable;
t_bpoint *bpoint;
bptable=(t_table *)Plugingetvalue(VAL_BREAKPOINTS);
if (bptable!=NULL) {
for (int b=bptable->data.n-1; b>=0;b--) {
bpoint=(t_bpoint *)Getsortedbyselection(&(bptable->data),b);
if (bpoint!=NULL) {
Setbreakpoint(bpoint->addr, TY_ACTIVE, bpoint->cmd);
}
}
}
Broadcast(WM_USER_CHALL, 0, 0);
require_ollyloop = 1;
return true;
}
maybe like this

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.