This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch#2] Fix initial language with -readnow, regressed by: RFC: add DWARF index support
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sourceware dot org
- Date: Mon, 03 Oct 2011 13:55:21 -0600
- Subject: Re: [patch#2] Fix initial language with -readnow, regressed by: RFC: add DWARF index support
- References: <20110928220344.GA17977@host1.jankratochvil.net> <20110928230742.GB19246@adacore.com> <20110929151423.GA1124@host1.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> So I fixed rather the method implementation than to workaround it
Jan> in the caller.
Thanks.
This looks good.
Jan> BTW find_main_filename is the only caller of ->find_symbol_file.
The main-finding code has caused issues for various laziness patches
I've worked on. It would be nice to replace it.
Also I tripped across the call to set_main_name in dwarf2read.c ... it
seems bad for debuginfo reading to set global state. (Instead it could,
say, set a field on the objfile...)
Tom