Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
Hardware Breakpoint looping !

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2008
    Posts
    2

    Hardware Breakpoint looping !

    Hi,

    I've written some code which succesfully places a hardware breakpoint on some code. This works and breaks at the correct place.

    I just want to grab a value (ecx vtable base pointer) and then remove the breakpoint and continue with the code without skipping any instructions.

    The code hits the breakpoint and then jump loops hitting the breakpoint endlessly.

    Not even other threads fire when hitting the breakpoint. I'm trying to remove the BP with this code :

    ctx.Dr0 = 0; // Set Address of Breakpoint 1
    ctx.Dr7 = 0; // De-Activate Breakpoint 1
    SetThreadContext(BPThread, &ctx);


  2. #2
    Coders Shard's Avatar
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    213

    Re: Hardware Breakpoint looping !

    It would be easier to help you if we were able to see some more of your code. It sounds like your breakpoint removal isn't working, or at least working but not at the right time, so where exactly is that being executed?

    I would do something like this since you can change the thread context directly in your exception handler.
    Code:
    ExceptionInfo->ContextRecord->Dr0 = 0;
    ExceptionInfo->ContextRecord->Dr7 = 0;
    
    return EXCEPTION_CONTINUE_EXECUTION;

  3. #3
    Junior Member
    Join Date
    Sep 2008
    Posts
    2

    Re: Hardware Breakpoint looping !

    That works a treat !

    I had my code in the exception handler and i've simply replaced it with yours and it works.

    i guess i must have somehow have had the threads wrong as essentially the code would appear to be doing the same thing. ie resetting the context registers to switch the breakpoint off.



    Thanks Shard !

Similar Threads

  1. Hardware Ban
    By xendo in forum Guides & Tutorials
    Replies: 5
    Last Post: January 1st, 2011, 13:09
  2. Breakpoint on renderscene?
    By Robbin237 in forum Basehooks / Sources
    Replies: 7
    Last Post: June 23rd, 2010, 14:49
  3. Hardware Ban Help
    By jumpmanjoker23 in forum Call of Duty 2 Cheats
    Replies: 15
    Last Post: September 9th, 2007, 22:04
  4. looking for hardware ban
    By jmpnop in forum Enemy Territory Cheats
    Replies: 6
    Last Post: July 5th, 2007, 09:40
  5. Hardware Ban!
    By $m!l3m@n in forum Enemy Territory Cheats
    Replies: 22
    Last Post: July 9th, 2006, 14:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •