From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFC/DWARF2] Fallback unknown language to C?
Date: Tue, 25 Feb 2003 23:02:00 -0000 [thread overview]
Message-ID: <20030225230204.GY910@gnat.com> (raw)
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
next reply other threads:[~2003-02-25 23:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-25 23:02 Joel Brobecker [this message]
2003-02-25 23:18 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030225230204.GY910@gnat.com \
--to=brobecker@gnat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox