This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to monitor register
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Guoqiuping <guoqiuping81112 at 163 dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 15 Feb 2013 15:54:13 +0200
- Subject: Re: How to monitor register
- References: <b5wp0oy8rlf6e4onksrrmu0b.1360934881385@email.android.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 15 Feb 2013 21:33:00 +0800
> From: Guoqiuping <guoqiuping81112@163.com>
>
> i have a question about gdb usage.
> i know that the watch command that can set watchpoint for expressions.
>
> i want to know how to watch the
> change of some register (for example ebp) ,that to say i want to monitor the change of ebp, but i have no idea, please help me. thanks a lot
Like this:
(gdb) watch $ebp
Note, however, that the 'watch' command that watches a register will
cause the program be single-stepped, so it will run very slowly.