mirror of
https://github.com/x64dbg/x64dbg.git
synced 2024-11-23 13:00:14 +00:00
DBG: changed behaviour of _dbg_bpgettypeat
This commit is contained in:
parent
3230c147ef
commit
da299171be
@ -63,10 +63,10 @@ enum ADDRINFOFLAGS
|
|||||||
|
|
||||||
enum BPXTYPE
|
enum BPXTYPE
|
||||||
{
|
{
|
||||||
bpnone,
|
bpnone=0,
|
||||||
bpnormal,
|
bpnormal=1,
|
||||||
bphardware,
|
bphardware=2,
|
||||||
bpmemory
|
bpmemory=4
|
||||||
};
|
};
|
||||||
|
|
||||||
//Debugger structs
|
//Debugger structs
|
||||||
|
@ -120,24 +120,19 @@ extern "C" DLL_EXPORT bool _dbg_addrinfoset(duint addr, ADDRINFO* addrinfo)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" DLL_EXPORT BPXTYPE _dbg_bpgettypeat(duint addr)
|
extern "C" DLL_EXPORT int _dbg_bpgettypeat(duint addr)
|
||||||
{
|
{
|
||||||
BREAKPOINT* found=bpfind(bplist, 0, addr, 0, BPNOTYPE);
|
int result=bpnone;
|
||||||
if(!found or !found->enabled) //none found or disabled
|
BREAKPOINT* found=bpfind(bplist, 0, addr, 0, BPNORMAL);
|
||||||
return bpnone;
|
if(found and found->enabled) //none found or disabled
|
||||||
switch(found->type)
|
result|=bpnormal;
|
||||||
{
|
found=bpfind(bplist, 0, addr, 0, BPHARDWARE);
|
||||||
case BPNORMAL:
|
if(found and found->enabled) //none found or disabled
|
||||||
case BPSINGLESHOOT:
|
result|=bphardware;
|
||||||
return bpnormal;
|
found=bpfind(bplist, 0, addr, 0, BPMEMORY);
|
||||||
case BPHARDWARE:
|
if(found and found->enabled) //none found or disabled
|
||||||
return bphardware;
|
result|=bpmemory;
|
||||||
case BPMEMORY:
|
return result;
|
||||||
return bpmemory;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return bpnone;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" DLL_EXPORT bool _dbg_getregdump(REGDUMP* regdump)
|
extern "C" DLL_EXPORT bool _dbg_getregdump(REGDUMP* regdump)
|
||||||
|
@ -17,7 +17,7 @@ DLL_EXPORT bool _dbg_isdebugging();
|
|||||||
DLL_EXPORT bool _dbg_isjumpgoingtoexecute(duint addr);
|
DLL_EXPORT bool _dbg_isjumpgoingtoexecute(duint addr);
|
||||||
DLL_EXPORT bool _dbg_addrinfoget(duint addr, SEGMENTREG segment, ADDRINFO* addrinfo);
|
DLL_EXPORT bool _dbg_addrinfoget(duint addr, SEGMENTREG segment, ADDRINFO* addrinfo);
|
||||||
DLL_EXPORT bool _dbg_addrinfoset(duint addr, ADDRINFO* addrinfo);
|
DLL_EXPORT bool _dbg_addrinfoset(duint addr, ADDRINFO* addrinfo);
|
||||||
DLL_EXPORT BPXTYPE _dbg_bpgettypeat(duint addr);
|
DLL_EXPORT int _dbg_bpgettypeat(duint addr);
|
||||||
DLL_EXPORT bool _dbg_getregdump(REGDUMP* regdump);
|
DLL_EXPORT bool _dbg_getregdump(REGDUMP* regdump);
|
||||||
DLL_EXPORT bool _dbg_valtostring(const char* string, duint* value);
|
DLL_EXPORT bool _dbg_valtostring(const char* string, duint* value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user