Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: gdb-patches@sourceware.org
Cc: ezannoni@redhat.com
Subject: [RFA] Set pascal language for DWarf debug information
Date: Mon, 05 Feb 2007 16:16:00 -0000	[thread overview]
Message-ID: <1755.130.79.112.72.1170691981.squirrel@www-ics.u-strasbg.fr> (raw)
In-Reply-To: 

  Following the patch was proposed by
Jonas Maebe in bugs database reference 2223


http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2223
?

 I extended his proposed patch to dwarfread.c file also.

 I can see no risks associated with the given patch,
and I hope that, despite the long time since my last
RFA, it is formatted correctly.
 It is in a way, pascal specific, but as it is
not in a pascal only file, I prefer to get approval
before committing.


Pierre Muller
maintainer of pascal language support.


2007-02-05  Pierre Muller  <muller@ics.u-strasbg.fr>

        * gdb/dwarfread.c (set_cu_language): Recognize LANG_PASCAL83 as
pascal language marker.
        * gdb/dwarf2read.c (set_cu_language): Recognize DW_LANG_Pascal83
as pascal language marker.


Index: gdb/dwarf2read.c
=================================================================== RCS
file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.214
diff -u -p -r1.214 dwarf2read.c
--- gdb/dwarf2read.c    28 Jan 2007 14:42:12 -0000      1.214
+++ gdb/dwarf2read.c    5 Feb 2007 15:26:58 -0000
@@ -6325,9 +6325,11 @@ set_cu_language (unsigned int lang, stru
     case DW_LANG_Modula2:
       cu->language = language_m2;
       break;
+    case DW_LANG_Pascal83:
+      cu->language = language_pascal;
+      break;
     case DW_LANG_Cobol74:
     case DW_LANG_Cobol85:
-    case DW_LANG_Pascal83:
     default:
       cu->language = language_minimal;
       break;
Index: gdb/dwarfread.c
=================================================================== RCS
file: /cvs/src/src/gdb/dwarfread.c,v
retrieving revision 1.46
diff -u -p -r1.46 dwarfread.c
--- gdb/dwarfread.c     9 Jan 2007 17:58:50 -0000       1.46
+++ gdb/dwarfread.c     5 Feb 2007 15:26:59 -0000
@@ -616,10 +616,12 @@ set_cu_language (struct dieinfo *dip)
     case LANG_FORTRAN90:
       cu_language = language_fortran;
       break;
+    case LANG_PASCAL83:
+      cu_language = language_pascal;
+      break;
     case LANG_ADA83:
     case LANG_COBOL74:
     case LANG_COBOL85:
-    case LANG_PASCAL83:
       /* We don't know anything special about these yet. */
       cu_language = language_unknown;
       break;









             reply	other threads:[~2007-02-05 16:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05 16:16 Pierre Muller [this message]
2007-02-08 18:03 ` Daniel Jacobowitz
2007-02-12 16:22   ` Pierre Muller
2007-02-12 17:02     ` 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=1755.130.79.112.72.1170691981.squirrel@www-ics.u-strasbg.fr \
    --to=muller@ics.u-strasbg.fr \
    --cc=ezannoni@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /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