This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
pending/1167: [RFA/DWARF2] Fallback unknown language to C
- From: Joel Brobecker <brobecker at gnat dot com>
- To: gdb-gnats at sources dot redhat dot com
- Date: Tue, 11 Mar 2003 17:44:15 -0800
- Subject: pending/1167: [RFA/DWARF2] Fallback unknown language to C
>Number: 1167
>Category: pending
>Synopsis: [RFA/DWARF2] Fallback unknown language to C
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Mon Mar 31 22:48:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
>Description:
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
I am hearing the first rumors of 5.4, I think it would be nice to have
the following change in. It's a followup on a remark made in this
message:
http://sources.redhat.com/ml/gdb/2003-02/msg00533.html
(GDB does not work very well when the language is unknown)
2003-03-11 J. Brobecker <brobecker at gnat dot com>
* dwarf2read.c (set_cu_language): Fall the language back to C
if it is unsupported.
Ok to commit?
Thanks,
--
Joel
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dwarf2read.c.diff"
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.88
diff -c -3 -p -r1.88 dwarf2read.c
*** dwarf2read.c 25 Feb 2003 21:36:17 -0000 1.88
--- dwarf2read.c 12 Mar 2003 01:43:27 -0000
*************** set_cu_language (unsigned int lang)
*** 4455,4461 ****
case DW_LANG_Pascal83:
case DW_LANG_Modula2:
default:
! cu_language = language_unknown;
break;
}
cu_language_defn = language_def (cu_language);
--- 4455,4462 ----
case DW_LANG_Pascal83:
case DW_LANG_Modula2:
default:
! /* These languages are unsupported, so we treat them as C. */
! cu_language = language_c;
break;
}
cu_language_defn = language_def (cu_language);
--vtzGhvizbBRQ85DL--
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: