Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Is this a bug in gdb
@ 2020-02-16 22:41 Volker Weißmann
  2020-02-17 12:37 ` Luis Machado
  0 siblings, 1 reply; 7+ messages in thread
From: Volker Weißmann @ 2020-02-16 22:41 UTC (permalink / raw)
  To: gdb

Hello,

The help text of the watch command claims that the -l option watches the
memory of the variable. When I tried this, I was surprised by the
outcome (reproducible):


(gdb) watch this->v_
Hardware watchpoint 2: this->v_
(gdb) watch -l this->v_
A syntax error in expression, near `restrict *) 0x00007fffffffd398'.
(gdb)

Note: Using print &(this->v_) and  watch (char[8])
*outputoftheprintcommand worked.


I am asking you whether this is a bug in gdb or not, because if it is a
bug in gdb, I will try to make a minimal example an file a bug report.


Greetings

Volker Weißmann


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

end of thread, other threads:[~2020-02-18  1:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-16 22:41 Is this a bug in gdb Volker Weißmann
2020-02-17 12:37 ` Luis Machado
2020-02-17 13:21   ` Volker Weißmann
2020-02-17 13:50     ` Luis Machado
2020-02-17 14:39       ` Volker Weißmann
2020-02-18  1:35         ` Volker Weißmann
2020-02-18  1:43           ` Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox