This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA/symtab: (Almost) always hash blocks when searching them


On Sun, 9 Feb 2003 17:03:21 -0500, Daniel Jacobowitz <drow@mvista.com> said:

> I'm working on modifying the symbol lookup functions to return
> multiple symbols when there are multiple possible matches, and I
> didn't want to have to modify all three kinds of binary search in
> lookup_block_symbol.  First I tried fixing mdebugread.c to generate
> hashed blocks properly; it was too messy, and I couldn't build an
> mdebug toolchain to test with [mips-ecoff was my best guess, and
> it's been broken for months.  Part of it was my fault and then GCC
> started segfaulting after I fixed that].

For what it's worth (I do realize you've withdrawn your patch), I'm
hoping to submit an RFC by the end of February for a plan that will
include getting rid of sorted linear blocks.  I'm not up for
buildsymifying mdebugread.c, but I'm up for doing that amount of
cleanup.

I haven't looked at your patch, but one piece of trivia that you might
want to be aware of if my RFC is rejected and if you have to deal with
this again is that Java code will create one block that is a
non-sorted linear block but that isn't associated to a function.  It's
easy to screw that one up without realizing it; if you do, Tom Tromey
will get mad at you. :-)

David Carlton
carlton@math.stanford.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]