This is the mail archive of the gdb-patches@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: Watching expressions that don't involve memory (e.g., watch $regfoo)


> Anyone else things this is useful?  Here's a 5 minute hack at it.
> +* Watchpoints on expressions not involving memory
> +
> +  GDB now supports watching expressions that don't involve memory.
> +  This allows, for example, watching for register changes.
> +  E.g. "watch $pc" will do the right thing.

I think that this might be very useful, indeed. For instance, if
a variable is stored in a register instead of memory.

-- 
Joel


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