From: "Volker Weißmann" <volker.weissmann@gmx.de>
To: gdb@sourceware.org
Subject: Is this a bug in gdb
Date: Sun, 16 Feb 2020 22:41:00 -0000 [thread overview]
Message-ID: <64aad0f5-5cee-63a6-18cc-1efdef1b1750@gmx.de> (raw)
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
next reply other threads:[~2020-02-16 22:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-16 22:41 Volker Weißmann [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=64aad0f5-5cee-63a6-18cc-1efdef1b1750@gmx.de \
--to=volker.weissmann@gmx.de \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox