Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 1/2] gdb-gdb.py: Make the fields copy-paste friendly
Date: Fri, 15 Jan 2010 19:56:00 -0000	[thread overview]
Message-ID: <20100115195556.GA6844@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <m36373cfn4.fsf@fleche.redhat.com>

On Fri, 15 Jan 2010 20:49:35 +0100, Tom Tromey wrote:
> Maybe a new option like "set print type" or "set print pointer-type"?
> Then it could apply everywhere, not just to the gdb-specific
> pretty-printers.

Such as even to non-Python struct printing which currently print:
	$1 = {pointer_type = 0x0, reference_type = 0x0, chain = 0x1dfaa40,
	instance_flags = 0, length = 36, main_type = 0x1dfaa70}


> Jan> -        fields.append("main_type = %s" % self.val['main_type'])
> Jan> +        fields.append("main_type = (%s) %s" % (self.val['main_type'].type, self.val['main_type']))
> 
> ... and in conjunction, changing this to just return values rather than
> doing the formatting by hand.

yes.


Thanks,
Jan


      reply	other threads:[~2010-01-15 19:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15 19:28 Jan Kratochvil
2010-01-15 19:49 ` Tom Tromey
2010-01-15 19:56   ` Jan Kratochvil [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=20100115195556.GA6844@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    /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