This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to monitor register


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]