Log in

View Full Version : Multi conditional BP ??


ollylover
March 7th, 2004, 07:29
Hi..

I very often have used ollydbg.. (as my user name "ollylover"..)
Now, What I wanna do is Multi Conditional BreakPoint on one code line..
How can I do it??

In detail, How can I use these(MSG, Whnd..) value in conditional Breakpoint log..??

If 1.10b has not this feature, wanna have this in next new version..


blabberer
March 8th, 2004, 04:44
will you read the fine manual or "rtfm"

Condition: [ESP+4]==00001234 && [ESP+8] IN (0F0..0F7,135)
Explanation: <WinProc>
Pause program: On condition

At entry to window procedure, stack contains:

[ESP+00] Return address
[ESP+04] Window's handle
[ESP+08] Message
[ESP+0C] wParam
[ESP+10] lParam
Now it's clear that first part of condition means: "Window's handle must be 00001234" and second: "Message is one of (BM_GETCHECK...BM_SETIMAGE, WM_CTLCOLORBTN)".

Important note: Window's handle is different each time window is created, so if you set breakpoint on actual window only, this breakpoint is valid only for the life of this window.


Message groups


Group Messages in group
Any message Any message
Creation and destruction WM_CREATE, WM_DESTROY, WM_CLOSE, WM_QUERYENDSESSION, WM_QUIT,WM_ENDSESSION, WM_NCCREATE, WM_NCDESTROY, WM_INITDIALOG
Window activation WM_ACTIVATE, WM_SETFOCUS, WM_KILLFOCUS,WM_ENABLE, WM_SHOWWIND

ollylover
March 8th, 2004, 14:08
Hi, oh me anon!!

First of all, very thanks for your helpful reply !!
Now it works vey well..



Have a good day !!