Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How to set breakpoints on register(s) value?

956 views
Skip to first unread message

Drew Bliss [MSFT]

unread,
Oct 6, 2005, 7:39:59 PM10/6/05
to
There isn't any way to set a breakpoint on register content changes. There
are some approximations:

1. Polling: set code breakpoints on code around the area you think the
registers are getting set and use the 'j' command to check register values.
2. If you know a memory location that the values are getting read from you
can set a read data breakpoint on that address with 'ba'.
3. You can use a command with p/t to poll register values as you step. For
example, if you put

j(@ebp = 0x50) '.echo Hit';'t "$<condebp"'

in a file called "condebp", then get close to where you want to check and do

t "$<condebp"

it'll conditionally step until ebp equals 0x50.

"j.a. harriman" <jeffrey_no...@nospam.nospam> wrote in message
news:56AFE4C8-70F8-4B67...@microsoft.com...
> Hi,
>
> I would like to set a breakpoint on the ebp, eax registers when the
> following "garbage" address is put in them: 00000050h
>
> I've read the help section in WinDbg, but I never seemed to hit the
> breakpoint(s).
>
> Thanks!!
> Jeff


j.a. harriman

unread,
Oct 7, 2005, 9:25:04 AM10/7/05
to
Thanks Drew, item # 3 worked like a charm!

Jeff

0 new messages