* [RFC/DWARF2] Fallback unknown language to C?
@ 2003-02-25 23:02 Joel Brobecker
2003-02-25 23:18 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Joel Brobecker @ 2003-02-25 23:02 UTC (permalink / raw)
To: gdb-patches
This is a followup on a concern reported by Stephane Carrez on the
GDB mailing list:
http://sources.redhat.com/ml/gdb/2003-02/msg00533.html
> In the past, a gdb without Ada support could be used to, at least, see the
> source. However, we are now in this sad situation where this is no longer
> possible because now gdb complains at unknown languages and... stops.
I think we shouldn't fail like this because we have some symbols for an
unsupported language. Could we for instance fallback to C for unknown
language symbols.
I looked at set_cu_language in dwarf2read.c. What would be the
consequences of setting cu_language to language_c in these cases:
case DW_LANG_Ada83:
case DW_LANG_Ada95:
case DW_LANG_Cobol74:
case DW_LANG_Cobol85:
case DW_LANG_Pascal83:
case DW_LANG_Modula2:
default:
cu_language = language_unknown;
break;
--
Joel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC/DWARF2] Fallback unknown language to C?
2003-02-25 23:02 [RFC/DWARF2] Fallback unknown language to C? Joel Brobecker
@ 2003-02-25 23:18 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-02-25 23:18 UTC (permalink / raw)
To: gdb-patches
On Tue, Feb 25, 2003 at 03:02:04PM -0800, Joel Brobecker wrote:
> This is a followup on a concern reported by Stephane Carrez on the
> GDB mailing list:
>
> http://sources.redhat.com/ml/gdb/2003-02/msg00533.html
>
> > In the past, a gdb without Ada support could be used to, at least, see the
> > source. However, we are now in this sad situation where this is no longer
> > possible because now gdb complains at unknown languages and... stops.
>
> I think we shouldn't fail like this because we have some symbols for an
> unsupported language. Could we for instance fallback to C for unknown
> language symbols.
>
> I looked at set_cu_language in dwarf2read.c. What would be the
> consequences of setting cu_language to language_c in these cases:
>
> case DW_LANG_Ada83:
> case DW_LANG_Ada95:
> case DW_LANG_Cobol74:
> case DW_LANG_Cobol85:
> case DW_LANG_Pascal83:
> case DW_LANG_Modula2:
> default:
> cu_language = language_unknown;
> break;
I am inclined to agree.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-25 23:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-25 23:02 [RFC/DWARF2] Fallback unknown language to C? Joel Brobecker
2003-02-25 23:18 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox