From: Simon Marchi <simark@simark.ca>
To: Hannes Domani <ssbssa@yahoo.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Handle void results as unformatted prints
Date: Thu, 8 Oct 2020 23:40:47 -0400 [thread overview]
Message-ID: <bb934752-72b9-65de-699a-d061364cfdf3@simark.ca> (raw)
In-Reply-To: <20201008205608.51142-1-ssbssa@yahoo.de>
On 2020-10-08 4:56 p.m., Hannes Domani via Gdb-patches wrote:
> When printing void results without any format letter, they are output
> as expected:
> (gdb) p $abcd
> $1 = void
> (gdb) p (void)10
> $2 = void
>
> But if any format letter (besides s) is used, it always outputs zero:
> (gdb) p/x $abcd
> $3 = 0x0
> (gdb) p/x (void)10
> $4 = 0x0
Thanks, this is, OK. Although, for completeness in your test, can you
also add test to print a convenience variable that doesn't exist, as you
have shown above (the first "p $abcd")?
Simon
next prev parent reply other threads:[~2020-10-09 3:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20201008205608.51142-1-ssbssa.ref@yahoo.de>
2020-10-08 20:56 ` Hannes Domani
2020-10-09 3:40 ` Simon Marchi [this message]
2020-10-09 11:54 ` Hannes Domani
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=bb934752-72b9-65de-699a-d061364cfdf3@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=ssbssa@yahoo.de \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).