Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Berlin <dberlin@dberlin.org>
To: Jim Blandy <jimb@redhat.com>
Cc: Andrew Cagney <ac131313@redhat.com>,
	Daniel Jacobowitz <drow@mvista.com>,
	 Mark Kettenis <kettenis@chello.nl>, "" <gdb@sources.redhat.com>
Subject: Re: RFC: Variables in blocks of registers
Date: Tue, 04 Feb 2003 04:07:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.50.0302032253080.3907-100000@dberlin.org> (raw)
In-Reply-To: <vt2n0lc239z.fsf@zenia.red-bean.com>



On Mon, 3 Feb 2003, Jim Blandy wrote:

>
> Andrew Cagney <ac131313@redhat.com> writes:
> > >> dwarf2 makes it possible to scatter a value across both memory and
> > >> registers.  It's been proposed that the `struct value' be augmented
> > >> with something like `struct location' that knows how to find any
> > >> sub component of a value.
> > > However, right now GCC doesn't generate this.  Probably because it
> > > would kill us.
> >
> > I'm not so sure.  In the past, GCC hasn't waited for GDB so I don't
> > think that would be the reason now.
>
> I thought it had.  A lot of the C++ stuff, for example;
> DW_AT_MIPS_linkage_name; etc.
>

Yup.
GCC has and does wait for GDB quite a bit, contrary to Andrew's assertion.
There have been times when people get frustrated enough to give up
waiting, it depends on the feature and the person who implemented it.
Generally, I wait indefinitely to commit, and complain a lot.
Others stew quietly, but give up waiting for GDB, and just commit it
without waiting for gdb to catch up.

If you'd rather me just do that, so you can consistently say
that gcc doesn't wait for gdb, i'll happily do so.

Just give me the word, and i'll go remove DW_AT_mips_linkage_name, for
instance.
It'll save a *large* amount of space in the C++ object files and binaries.

There's other pieces of code already committed that are waiting for gdb
too, a quick scan found this #if 0'd block in dwarf2out.c:

#if 0
      /* Disable this optimization for now; GDB wants to see two line notes
         at the beginning of a function so it can find the end of the
         prologue.  */

      /* Don't emit anything for redundant notes.  Just updating the
         address doesn't accomplish anything, because we already assume
         that anything after the last address is this line.  */
      if (line_info->dw_line_num == current_line
          && line_info->dw_file_num == current_file)
        continue;
#endif




  reply	other threads:[~2003-02-04  4:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-01 14:48 Mark Kettenis
2003-02-01 15:48 ` Andrew Cagney
2003-02-01 17:09   ` Daniel Jacobowitz
2003-02-01 20:45     ` Andrew Cagney
2003-02-02 16:13       ` Mark Kettenis
2003-02-02  5:21         ` Daniel Jacobowitz
2003-02-02 16:52         ` Andrew Cagney
2003-02-02 16:27           ` Daniel Jacobowitz
2003-02-04  2:31       ` Jim Blandy
2003-02-04  4:07         ` Daniel Berlin [this message]
2003-02-02 15:33     ` Daniel Berlin

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=Pine.LNX.4.50.0302032253080.3907-100000@dberlin.org \
    --to=dberlin@dberlin.org \
    --cc=ac131313@redhat.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=kettenis@chello.nl \
    /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