delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/07/17:10:23

Date: Thu, 07 Dec 2000 23:31:20 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <2593-Thu07Dec2000233119+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.LNX.4.10.10012071823590.18292-100000@acp3bf> (message from
Hans-Bernhard Broeker on Thu, 7 Dec 2000 18:32:00 +0100 (MET))
Subject: Re: DJGPP linker script update
References: <Pine DOT LNX DOT 4 DOT 10 DOT 10012071823590 DOT 18292-100000 AT acp3bf>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Thu, 7 Dec 2000 18:32:00 +0100 (MET)
> From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
> 
> So the first step would be to try and get those changes back go into the
> Binutils sources, I'd say. There's no point having the changes at hand and
> not filing them back to the binutils team, IMHO.

I'm not sure the way I chose out of the mess is sufficiently general.
Anyway, addr2line made an impression of a demo program that nobody
maintains seriously.

> > I meant to add core file support to bfdsymify [...]
> 
> In that case, the updated version of bfdsymify should probably be built
> from a subset of the GDB sources, and hence become a member of the GDB
> package, not of binutils. It's essentially a special-purpose micro-gdb,
> after all.

I looked into GDB at the time, when I worked on bfdsymify, trying to
understand what will it take to base it on GDB (since GDB is so much
better in printing tracebacks).  I came to a conclusion that it would
be a nightmare.  GDB's symbol-handling code is tremendously complex,
includes two levels (minsyms and symbols), and was not written to be
wripped off into a separate library.

In other word, you will need to link against the full libgdb.a, which
will give you an executable approximately the size of GDB.  It isn't
worth it.

> [BTW: other programs also seem to do their own core file reading rather
> than using the BFD --- e.g. gprof.]

Yes, it's a chicken-and-egg problem: no one uses BFD to read symbols,
so BFD doesn't have good facilities to read symbols, so no one uses
BFD to read symbols... etc., etc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019