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: .n suffixes for function names in stabs debug info (GCC3.1-based compiler)


> 
> Jim, that raises one question.  How are we going to support searching
> for a name in all scopes, a la `info func'?  It seems that it might be
> prohibitively more expensive than it is currently...

I'm not so sure it would be all that more expensive, but if it was, we
could just throw all names into a global ternary search tree, and use
that for searches against all scopes.

For the example of "info func main", you just walk the tree to main, and
print out all children from there.


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