public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>
Subject: Re: [RFA] mi/10586
Date: Mon, 14 Nov 2011 18:04:00 -0000	[thread overview]
Message-ID: <4EC157F6.1030503@redhat.com> (raw)
In-Reply-To: <m3mxbyso6i.fsf@fleche.redhat.com>

On 11/14/2011 07:45 AM, Tom Tromey wrote:

> ChangeLog should mention the PR.

That would be useful, no? I don't know why I sometimes forget. I've 
added that.

> Keith>  +	type_name = TYPE_FIELD_NAME (type, index);
> Keith>  +	if (*type_name == '\0')
> Keith>  +	  name = xstrprintf ("anonymous%d", index);
> Keith>  +	else
> Keith>  +	  name = type_name;
>
> What happens if there is a clash between a named field's name and the
> generated name for an anonymous field?

Ha. My guess: bad things (TM).

Given that variables cannot start with numbers, I've changed the name 
string to "%d_anonymous".

Other comments?
Keith

  reply	other threads:[~2011-11-14 18:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 21:30 Keith Seitz
2011-11-14 15:45 ` Tom Tromey
2011-11-14 18:04   ` Keith Seitz [this message]
2011-11-14 18:18     ` Tom Tromey
2011-11-14 19:28       ` Keith Seitz
2011-11-14 20:28         ` Tom Tromey
2011-11-15 17:10           ` Keith Seitz
2011-11-15 17:30             ` Tom Tromey
2011-12-02 22:28             ` Keith Seitz
2011-12-13  1:28               ` Keith Seitz
2011-12-13 19:58               ` Tom Tromey
2011-12-17  1:55                 ` Keith Seitz
2011-12-20 16:03                   ` Tom Tromey
2012-01-12 23:05                     ` Keith Seitz
2011-12-13 20:34               ` Crash regression with Eclipse [Re: [RFA] mi/10586] Jan Kratochvil

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=4EC157F6.1030503@redhat.com \
    --to=keiths@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).