public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Hannes Domani <ssbssa@yahoo.de>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 Simon Marchi <simark@simark.ca>
Subject: Re: [PATCH] Handle void results as unformatted prints
Date: Fri, 9 Oct 2020 11:54:39 +0000 (UTC)	[thread overview]
Message-ID: <1706760047.1705751.1602244479898@mail.yahoo.com> (raw)
In-Reply-To: <bb934752-72b9-65de-699a-d061364cfdf3@simark.ca>

 Am Freitag, 9. Oktober 2020, 05:40:49 MESZ hat Simon Marchi <simark@simark.ca> Folgendes geschrieben:

> 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")?

Pushed with this change, thanks.


Hannes

      reply	other threads:[~2020-10-09 11:54 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
2020-10-09 11:54     ` Hannes Domani [this message]

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=1706760047.1705751.1602244479898@mail.yahoo.com \
    --to=ssbssa@yahoo.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /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).