This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Fix too many "no debugging symbols found" warnings.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Doug Evans <dje at google dot com>, Eli Zaretskii <eliz at gnu dot org>, "gdb-patches" <gdb-patches at sourceware dot org>
- Date: Mon, 22 Jun 2009 20:35:48 +0100
- Subject: Re: [RFA] Fix too many "no debugging symbols found" warnings.
- References: <20090523232414.BED2B846C2@localhost> <e394668d0906181747x2d0d4b66m272de65010f6b142@mail.gmail.com> <m31vpcp34n.fsf@fleche.redhat.com>
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