Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: dtaylor@emc.com, jr.peulve@wanadoo.fr, gdb@sources.redhat.com
Subject: Re: stabs vs dwarf (was: Re: Wrong address for static function in linux module )
Date: Thu, 13 Apr 2006 08:26:00 -0000	[thread overview]
Message-ID: <uy7y93njd.fsf@gnu.org> (raw)
In-Reply-To: <200604121824.k3CIOuJm000173@elgar.sibelius.xs4all.nl> (message 	from Mark Kettenis on Wed, 12 Apr 2006 20:24:56 +0200 (CEST))

> Date: Wed, 12 Apr 2006 20:24:56 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: drow@false.org, jr.peulve@wanadoo.fr, gdb@sources.redhat.com
> 
> > Date: Wed, 12 Apr 2006 11:38:09 -0400
> > From: David Taylor <dtaylor@emc.com>
> > 
> > A full build tree (build products only, no sources) is 8.7 GB with
> > STABS, but 24.6 GB when built with -gdwarf-2 -feliminate-dwarf2-dups.
> 
> You know if you compiled without debug information, your build tree
> would be even smaller.  What matters is whether the debug info is
> actually usable.  For unoptimized C code, stabs is probably fine.  But
> for heavily optimized C++ code, it will be unusable.

On the other hand, if the ``usable'' debug info uses up space that is
comparable to what the sources use up, we might as well ditch the
debug info, and instead implement an option in GCC that would use it
as an agent for telling GDB what it needs to know, and _only_ what it
needs to know.  That is, GDB would invoke GCC and ask it to provide
the info about some variable or function, and GCC will glean that from
the sources.

This is only a half-serious suggestion, the point being that a debug
info that is not optimized for debugger's usability in terms of memory
footprint and on-demand loading, is not very ``usable'', IMHO.


      reply	other threads:[~2006-04-13  8:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-11 13:33 Wrong address for static function in linux module Jean-Rene Peulve
2006-04-11 13:38 ` Daniel Jacobowitz
2006-04-11 13:45   ` Jean-Rene Peulve
2006-04-11 13:55     ` Daniel Jacobowitz
2006-04-11 14:41       ` Jean-Rene Peulve
2006-04-11 15:05         ` Daniel Jacobowitz
2006-04-12 11:38           ` Jean-Rene Peulve
2006-04-12 16:36           ` stabs vs dwarf (was: Re: Wrong address for static function in linux module ) David Taylor
2006-04-13  7:02             ` Mark Kettenis
2006-04-13  8:26               ` Eli Zaretskii [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=uy7y93njd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dtaylor@emc.com \
    --cc=gdb@sources.redhat.com \
    --cc=jr.peulve@wanadoo.fr \
    --cc=mark.kettenis@xs4all.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