From: "Alexandra Hájková" <ahajkova@redhat.com>
To: gdb-patches@sourceware.org
Cc: ahajkova@redhat.com
Subject: [PATCH 1/2] dwarf_lang_to_enum_language: Map new DWARF5 constants
Date: Mon, 9 Dec 2024 11:20:45 +0100 [thread overview]
Message-ID: <20241209102116.612361-1-ahajkova@redhat.com> (raw)
Add new DWARF5 language codes to gdb/dwarf2/read.c where
they are converted to GDB language names. The codes
were added to include/dwarf.h by syncing with gcc, Ada language
codes were added to dwarf.h earlier.
---
gdb/dwarf2/read.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 5a5e27f30a6..32194bcb3f2 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -17937,6 +17937,8 @@ dwarf_lang_to_enum_language (unsigned int lang)
case DW_LANG_C89:
case DW_LANG_C99:
case DW_LANG_C11:
+ case DW_LANG_C17:
+ case DW_LANG_C23:
case DW_LANG_C:
case DW_LANG_UPC:
language = language_c;
@@ -17945,6 +17947,8 @@ dwarf_lang_to_enum_language (unsigned int lang)
case DW_LANG_C_plus_plus:
case DW_LANG_C_plus_plus_11:
case DW_LANG_C_plus_plus_14:
+ case DW_LANG_C_plus_plus_20:
+ case DW_LANG_C_plus_plus_23:
language = language_cplus;
break;
case DW_LANG_D:
@@ -17955,16 +17959,21 @@ dwarf_lang_to_enum_language (unsigned int lang)
case DW_LANG_Fortran95:
case DW_LANG_Fortran03:
case DW_LANG_Fortran08:
+ case DW_LANG_Fortran18:
+ case DW_LANG_Fortran23:
language = language_fortran;
break;
case DW_LANG_Go:
language = language_go;
break;
+ case DW_LANG_Assembly:
case DW_LANG_Mips_Assembler:
language = language_asm;
break;
case DW_LANG_Ada83:
case DW_LANG_Ada95:
+ case DW_LANG_Ada2005:
+ case DW_LANG_Ada2012:
language = language_ada;
break;
case DW_LANG_Modula2:
--
2.47.0
next reply other threads:[~2024-12-09 10:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 10:20 Alexandra Hájková [this message]
2024-12-09 10:20 ` [PATCH 2/2] mangle_style: Add " Alexandra Hájková
2024-12-09 10:51 ` Rohr, Stephan
2024-12-09 15:37 ` Alexandra Petlanova Hajkova
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=20241209102116.612361-1-ahajkova@redhat.com \
--to=ahajkova@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