This is the mail archive of the gdb-patches@sourceware.org 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: Regression for gdb.fortran/library-module.exp [Re: [RFA] choose symbol from given block's objfile first.]


Hi Joel,

On Mon, 14 May 2012 16:39:27 +0200, Joel Brobecker wrote:
>   (2) Conditionalize my patch on the current language. If the current
>       language is Fortran, then loop over the objfiles as before.

Please no Fortran exceptions.  GDB is buggy even for plain C, see:
	Copy-Relocate debug error
	http://sourceware.org/ml/gdb/2012-01/msg00120.html

I can look at it myself but only later this week.


> There is an intermediate solution, which is to always search the
> main objfile first, and then the current DSO, and then the rest.

Some such order may be what ld.so does for the symbol search which should be
the real right solution.

Except for that there is probably wrong debug info in some cases from GCC and
(a) I believe GDB should try to be compatible with current widespread buggy
GCC debug info, (b) We may try to propose fixing the GCC produced debug info
but I have no idea how yet, some such possibilities were described in
	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40040


Thanks,
Jan


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