Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@redhat.com>
To: Jim Blandy <jimb@red-bean.com>
Cc: Eirik Fuller <eirik@hackrat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Use mmap for symbol tables
Date: Wed, 01 Feb 2006 06:04:00 -0000	[thread overview]
Message-ID: <43E04E87.3060702@redhat.com> (raw)
In-Reply-To: <8f2776cb0601301007k5bccb594he33b08e84096d1a2@mail.gmail.com>


> I'm just concerned about wasting address space.  People these days do
> have awfully big programs.  There are executables out there in the
> gigabytes (cue lurkers to share their horror stories).
> 

<snrk> Hmm?  Oh!  Um...

Yeah, you're right, Jim.  I've got users who have symbol files
with over a gigabyte of debug info.

Eirik, how about making this a user-specified option,
from the command line?  Seems like that would facilitate
performance testing anyways... besides helping on platforms
that don't have mmap.

I noticed a side thread about gdb "scanning the symbol info linearly"
on the first pass, and my thought on THAT was... what makes you think
it's linear?  With stabs it sure as hell isn't...

And another aside -- when one of my users with the gigabyte symtabs
tries to debug on a machine without enough physical memory, gdb
thrashes (naturally) -- but it thrashes BAD.  For all practical
purposes, the initial symbol scan never terminates.  That also
makes me doubt that the scan is linear.

One final ps -- this has been done before!  It was put in,
and it was taken out again.  One wonders if there was a reason
for taking it out.  A brief glance at Changelogs suggests that
it was put in in 1992, and removed again in 1996.  Hmm, here's
one that's poignant...

Wed Jan 31 13:34:52 1996  Fred Fish  <fnf@cygnus.com>

         * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
         Define to what should be reasonable values.  However, apparently
         a bug in linux mmap prevents mapped symbol tables from working.


  parent reply	other threads:[~2006-02-01  6:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-29 23:36 Eirik Fuller
2006-01-30  5:04 ` Jim Blandy
2006-01-30 11:44   ` Eirik Fuller
2006-01-30 18:07     ` Jim Blandy
2006-01-30 18:59       ` Eirik Fuller
2006-01-30 22:11         ` Jim Blandy
2006-01-31  0:38           ` Eirik Fuller
2006-01-31  1:49             ` Jim Blandy
2006-01-31  3:12               ` Eirik Fuller
2006-01-31 21:48             ` Mark Kettenis
2006-02-01 17:52               ` Eirik Fuller
2006-02-01  6:04       ` Michael Snyder [this message]
2006-01-30 11:34 ` Andrew STUBBS
2006-01-30 11:42   ` Corinna Vinschen
2006-01-30 11:48     ` Andrew STUBBS
2006-01-31  2:23 ` Daniel Jacobowitz
2006-01-31  3:31   ` Eirik Fuller
2006-01-31  3:38     ` Daniel Jacobowitz
2006-02-07 22:05     ` Eirik Fuller
2006-02-20 15:52       ` Daniel Jacobowitz
2006-01-31  5:28   ` Jim Blandy
2006-01-31 13:59     ` Daniel Jacobowitz
2006-01-31  4:40 David Anderson
2006-01-31  5:00 ` Eirik Fuller
2006-01-31  5:34   ` Jim Blandy
2006-01-31 14:00     ` Daniel Jacobowitz
2006-01-31 18:39       ` Jim Blandy
2006-02-01 18:11         ` Eirik Fuller
2006-01-31 17:45 ` David Anderson
2006-01-31 18:24 ` Jim Blandy
2006-01-31  4:53 David Anderson

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=43E04E87.3060702@redhat.com \
    --to=msnyder@redhat.com \
    --cc=eirik@hackrat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jimb@red-bean.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