[RFA] Fix too many "no debugging symbols found" warnings.
Pedro Alves
pedro@codesourcery.com
Mon Jun 22 19:35:00 GMT 2009
On Monday 22 June 2009 18:52:40, Tom Tromey wrote:
> >>>>> "Doug" == Doug Evans <dje@google.com> writes:
>
> Doug> What's the reason for passing from_tty=0 to symbol_file_add_main from
> Doug> captured_main?
>
> For questions like this I think the only thing to do is some
> archaeology. I looked, though, and this seems to have been 0 all the
> way back to 1.1 in the src repository. (I don't think I have ready
> access to the older Cygnus repository any more.)
You can go further back by looking at the old-releases, found through:
http://sourceware.org/gdb/download/
On gdb-2.51, I see this:
if (!strcmp (arg, "-se"))
{
exec_file_command (argv[i], !batch);
symbol_file_command (argv[i], !batch);
}
At revision 1.1 in CVS we have:
exec_file_command (execarg, !batch);
symbol_file_command (symarg, 0);
So at some point in time, the from_tty argument was changed to
a hardcoded 0.
Why that was so, I don't know. I like gdb's output with
Doug's suggestion.
(BTW, looking through such old gdb's sources can be
quite informative sometimes, it's like looking at a
smaller prototype sketch of current gdb. I keep copies
of those sources around myself, and sometimes peek them.)
--
Pedro Alves
More information about the Gdb-patches
mailing list