Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Keith Seitz <keiths@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] dwarf2_physname
Date: Tue, 01 Sep 2009 21:27:00 -0000	[thread overview]
Message-ID: <m3iqg2s6e9.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4A9C358E.2050904@redhat.com> (Keith Seitz's message of "Mon, 31 	Aug 2009 13:41:50 -0700")

>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:

Keith> In an effort to help maintainers assess the code in smaller chunks
Keith> without introducing new, temporary test suite failures, I'm going to
Keith> try something "different" -- this patch, and the follow-ons, will not
Keith> actually do anything until a final patch turns it all on. My hope is
Keith> that this will be minimally intrusive to GDB's code base, especially
Keith> given all the talk of a new release.

This seems fine to me, though as a procedural issue I would suggest that
you not commit anything until the whole series is approved.  (The
alternative seems to be committing unused code, which I think we should
not do in general.)

If this is a hardship for some reason we can discuss it.


I haven't read your patch in depth yet but I wanted to mention a couple
of things.  I'll look at the rest soon.

Keith> 	Based on work from Daniel Jacobowitz  <dan@codesourcery.com>:
Keith> 	* typeprint.h (c_type_print_args): Declare.
Keith> 	* ui-file.h (ui_file_obsavestring): Declare.
Keith> 	* c-typeprint.c (c_type_print_args): Add to global namespace.
Keith> 	Add "show_articifical" parameter and only print them when
Keith> 	requested.
Keith> 	* ui-file.c (do_ui_file_obsavestring): New function.
Keith> 	(ui_file_obsavestring): New function.

All of this part looked ok.

Keith> +/* A vector used during linkage name generation.  */
Keith> +typedef struct die_info *die_info_p;
Keith> +DEF_VEC_P (die_info_p);
Keith> +static VEC(die_info_p) *die_list;

I wonder if a global is really necessary.
I didn't check.

Keith> +      VEC_quick_push (die_info_p, die_list, d);

AFAICT the vector is only added to with VEC_quick_push.
This will die, though, if there is insufficient space in the vec.

So, something must be missing here -- either an explicit initialization
of the vec, or this should use VEC_safe_push.

Tom


  parent reply	other threads:[~2009-09-01 21:27 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 22:51 Keith Seitz
2009-08-31 23:10 ` Michael Eager
2009-08-31 23:23   ` Keith Seitz
2009-08-31 23:35     ` Michael Eager
2009-09-01 22:11     ` Daniel Jacobowitz
2009-09-01 22:27       ` Daniel Jacobowitz
2009-09-01 23:18       ` Michael Eager
2009-09-01 23:37         ` Daniel Jacobowitz
2009-09-02  1:12           ` Michael Eager
2009-09-01 23:26       ` Keith Seitz
2009-09-01 23:42         ` Daniel Jacobowitz
2009-09-14 18:39           ` Keith Seitz
2009-09-14 22:48             ` Daniel Jacobowitz
2009-09-14 23:56               ` Keith Seitz
2009-09-15 13:32                 ` Daniel Jacobowitz
2009-09-15 15:53                   ` Keith Seitz
2009-09-15 16:12                     ` Daniel Jacobowitz
2009-09-16 20:27                       ` Keith Seitz
2009-09-18 22:34                         ` Tom Tromey
     [not found]   ` <m37hwjy2tl.fsf@fleche.redhat.com>
2009-09-01  0:06     ` Michael Eager
2009-09-01 21:27 ` Tom Tromey [this message]
2009-09-01 22:10   ` Keith Seitz

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=m3iqg2s6e9.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=keiths@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