| View previous topic :: View next topic |
| Author |
Message |
MooMooCow Newbie cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 21
|
Posted: Thu Jun 07, 2007 3:07 am Post subject: Setting a breakpoint in C++ |
|
|
| I am programming in C++, and I was wondering how someone would set a breakpoint on a memory address to get the addresses that messes with it. I want to be able to set a breakpoint on a certain address and have it return all of the disassembly of it. I'm not sure if I am explaining this right. Mainly, I just want it to give me the results that T-Search would if you were to set a breakpoint in it. |
|
| Back to top |
|
 |
TheSorc3r3r I post too much
Reputation: 0
Joined: 06 Sep 2006 Posts: 2404
|
Posted: Thu Jun 07, 2007 4:54 am Post subject: |
|
|
Are you using an IDE? If so, which? MSVC++ uses F9 to toggle breakpoints, but generally the Breakpoint feature is under the Debug menu. _________________
Don't laugh, I'm still learning photoshop! |
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Thu Jun 07, 2007 5:28 am Post subject: |
|
|
| i think he meant to put a breakpoint to another process.. |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Jun 07, 2007 7:28 am Post subject: |
|
|
1. VirtualProtect the address with PAGE_NOACCESS
2. Catch the exception that is generated when it is accessed |
|
| Back to top |
|
 |
MooMooCow Newbie cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 21
|
Posted: Thu Jun 07, 2007 11:41 am Post subject: breakpoints |
|
|
Thanks for your replies. Appalsap, that sounds like it would work, but how would I go about getting the address in the exception? I haven't messed with exceptions much. I always just put the following and never mess with anything else.
try
{
}
catch(...)
{
}
I'll look up exceptions in C++ in the meantime to see if I can figure it out.
EDIT: I have yet another question... Where do I put the try/catch statement? |
|
| Back to top |
|
 |
g3nuin3 Cheater
Reputation: 0
Joined: 08 Jan 2007 Posts: 28
|
Posted: Wed Jun 13, 2007 11:04 pm Post subject: |
|
|
This requires for you to code a small debugging engine...Using Debugging APi's you have to set breakpoints and also catch it.
refer to this article: http://www.woodmann.com/fravia/iceman1.htm |
|
| Back to top |
|
 |
|