public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Variable watchpoint and memory watchpoint
@ 2000-07-20 16:25 Fabrice Gautier
  2000-07-20 17:20 ` Fernando Nasser
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Gautier @ 2000-07-20 16:25 UTC (permalink / raw)
  To: GDB (E-mail)

Hi,

It doesn't seem possible to set watchpoint on variables (ie: that halts the
program when the variable value change) nor on memory words with GDB. Or am
I missing something?

At least I didn't saw anything in the insights menus. Is there a console
command for this?

Also, I'm working with ARM and i know that the ARM debugger for Windows is
able to set such watchpoints. 

Thanks

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Variable watchpoint and memory watchpoint
  2000-07-20 16:25 Variable watchpoint and memory watchpoint Fabrice Gautier
@ 2000-07-20 17:20 ` Fernando Nasser
  0 siblings, 0 replies; 2+ messages in thread
From: Fernando Nasser @ 2000-07-20 17:20 UTC (permalink / raw)
  To: Fabrice Gautier; +Cc: GDB (E-mail)

Fabrice Gautier wrote:
> 
> Hi,
> 
> It doesn't seem possible to set watchpoint on variables (ie: that halts the
> program when the variable value change) nor on memory words with GDB. Or am
> I missing something?
> 
You haven't missed anything.  See below...


> At least I didn't saw anything in the insights menus. Is there a console
> command for this?
> 
Yes, there are console commands and, for now, this is the only way you can
set watchpoints. Use the console help command and you find the "watch" variety
(under the breakpoint category).


> Also, I'm working with ARM and i know that the ARM debugger for Windows is
> able to set such watchpoints.
> 
All targets are able to implement watchpoints by single-stepping (very slow).
Some CPUs have hardware support and some Operating Systems or gdb stubs give
access to this facility.  There is nothing of the sort for ARM so you'll have
to rely on the software implemented ones.



-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-07-20 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-20 16:25 Variable watchpoint and memory watchpoint Fabrice Gautier
2000-07-20 17:20 ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).