Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* A gdb+bfd string pool?
@ 2003-10-31 15:15 Andrew Cagney
  2003-10-31 15:19 ` Daniel Jacobowitz
  2003-11-03 17:25 ` David Carlton
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Cagney @ 2003-10-31 15:15 UTC (permalink / raw)
  To: binutils; +Cc: gdb

Hello,

GDB, to contain its run-time size is, uses gdb/bcaches where ...
/* A bcache is a data structure for factoring out duplication in
    read-only structures.  You give the bcache some string of bytes S.
    If the bcache already contains a copy of S, it hands you back a
    pointer to its copy.  Otherwise, it makes a fresh copy of S, and
    hands you back a pointer to that.  In either case, you can throw
    away your copy of S, and use the bcache's.
One notable feature of this mechanism is that it lets you eliminate 
string equality comparisons - equal bcache values implies equal strings.

Now, if I'm reading the BFD elf reader correctly, elf-strtab implements 
a similar mechanism (But I think it is currently only used by the linker?).

Should/could BFD export a string pool that GDB could use and then use 
that for any slurped symbol names?

Andrew


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-11-04 23:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-31 15:15 A gdb+bfd string pool? Andrew Cagney
2003-10-31 15:19 ` Daniel Jacobowitz
2003-10-31 15:45   ` Andrew Cagney
2003-10-31 15:51     ` Daniel Jacobowitz
2003-10-31 17:29       ` Andrew Cagney
2003-10-31 17:36         ` Jakub Jelinek
2003-10-31 17:45           ` Andrew Cagney
2003-11-03 17:25 ` David Carlton
2003-11-04  8:16   ` Joel Brobecker
2003-11-04 16:31     ` Andrew Cagney
2003-11-04 23:51   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox