Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA/DWARF2] Fallback unknown language to C
Date: Wed, 12 Mar 2003 01:44:00 -0000	[thread overview]
Message-ID: <20030312014415.GE958@gnat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

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@gnat.com>

        * dwarf2read.c (set_cu_language): Fall the language back to C
        if it is unsupported.

Ok to commit?

Thanks,
-- 
Joel

[-- Attachment #2: dwarf2read.c.diff --]
[-- Type: text/plain, Size: 809 bytes --]

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);

             reply	other threads:[~2003-03-12  1:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-12  1:44 Joel Brobecker [this message]
2003-03-12 14:59 ` Daniel Jacobowitz
2003-04-07 13:24   ` Elena Zannoni
2003-04-04 22:25     ` Daniel Jacobowitz
2003-04-10 18:05       ` Elena Zannoni
2003-04-10 19:08         ` Joel Brobecker
2003-04-10 19:48           ` Elena Zannoni
2003-04-10 20:00             ` Joel Brobecker
2003-04-23  0:04         ` Joel Brobecker
2003-04-23  0:52           ` Elena Zannoni

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=20030312014415.GE958@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