View Full Version : [Ollydbg] how to break at main() function just like GDB?
deathhex
May 5th, 2010, 22:33
Hello people,
Is there any plug-in or setting that allow Ollydbg to break at main() function by itself during debugging for any type of application? Cause most of the time I have to locate it and set it myself.
Thank you.
Hello.
In case you're speaking of OllyDbg 1.10 you can check the debugging options on the Events tab. The option is titled "Make first pause at" (System breakpoint, Entry point of main module - default, WinMain (if location is known) - the one you're searching for).
I'm sure OllyDbg 2.0 has got such an option as well.
deathhex
May 6th, 2010, 22:31
Hello anom,
I did change the debugging options but it seems not working.....
mjuad
May 10th, 2010, 20:26
I've seen this problem with a few people recently. If you're on a 64 bit operating system, you'll need a plugin to allow 64bit compatibility. You'll know this is the problem if you drop into ntdll repeatedly and get "single step" events. OllyAdvanced comes with an x64 compatibility mode option that can probably solve your problem. You can find it on any number of sites with RE tools including the collaborative RCE tool library linked above. Hope this helps!
Regards,
mjuad
deathhex
May 17th, 2010, 04:12
Sorry, I forgot to mentioned that I am using 32 bits OS. On the other hand, the program was compiled under cygwin.
I think there is room for ollydbg to improve.
Thank you.
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.