[RFA 2/4] dwarf2_physname

Tom Tromey tromey@redhat.com
Tue Dec 22 18:35:00 GMT 2009


>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:

Tom> I am not concerned about this.  I don't think -readnow is actually used
Tom> -- I can't imagine why anyone would want to use it.  And, on a big
Tom> program, an unrestricted "info func" or "info type" is probably just a
Tom> mistake, like hitting enter too soon.

Daniel> [...]  Also, does print
Daniel> <tab> read all symtabs?

It doesn't.  Keith's patch didn't touch the completion code.  This code
walks expanded symtabs, and then psymtabs -- it doesn't do any
expanding.  See symtab.c:default_make_symbol_completion_list.

Daniel> I'm not happy with introducing this slowdown.  I'd like to at least
Daniel> see a profile first - of some smaller example!  But I guess you're
Daniel> right that -readnow is not useful; maybe I should just let go...

:-)

My guess is that -readnow is left over from when GDB used mmalloc and
could dump symtabs.  That's just a guess, though.

I do agree that looking at a smaller example would be interesting,
because it would isolate the swap effect.

Tom



More information about the Gdb-patches mailing list