PDA

View Full Version : DeleteBreakpoints


Darus
August 1st, 2005, 12:48
Hello,
One question, how works DeleteBreakpoints ???
thanks for any answer

blabberer
August 1st, 2005, 14:07
?? you mean how to delete a brekpoint ??
if yes just hit f2 again on the same line where you have set break point
else
view breakpoints --> right click disable or remove
or do you mean how it works internally ??
if yes then it uses the same principle
when it sets
suspend thread
getthread context blah blah read process memory write process memory

Darus
August 1st, 2005, 14:38
i mean Deletebreakpoints from pdk
in fact i've tried the function but the arguments must be wrong
what are addr0 and addr1 ??

blabberer
August 4th, 2005, 10:15
ah you are playing with undocumented api()
oleh probably has some reservation about you using it so he has not documented it
there are also other apis like GetbpRelname (source code support)which are undocumented

use my information below at your own risk
from what i saw
addr0 is the addr of the break point
addr1 is the addr of next byte
int silent is also not defined in pdk
its value is 1 (guess work here)

for example if you have a break point at 40122

|Arg1 = 00401022
|Arg2 = 00401023
\Arg3 = 00000001
would be addr0 addr 1 and int silent respectively