[binutils-gdb] Ignore DW_TAG_padding in tag_is_type

Tom Tromey tromey@sourceware.org
Mon Sep 9 17:36:44 GMT 2024


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=86d6495bd44a5f228a65b84d1630fc318d3732ef

commit 86d6495bd44a5f228a65b84d1630fc318d3732ef
Author: Tom Tromey <tromey@adacore.com>
Date:   Fri Sep 6 10:52:54 2024 -0600

    Ignore DW_TAG_padding in tag_is_type
    
    DW_TAG_padding isn't a real tag -- it doesn't appear in the DWARF
    standard, only in include/dwarf2.def as a placeholder.  So, remove it
    from dwarf2/tag.h:tag_is_type.
    
    Reviewed-By: Tom de Vries <tdevries@suse.de>

Diff:
---
 gdb/dwarf2/tag.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gdb/dwarf2/tag.h b/gdb/dwarf2/tag.h
index 2ceae5393b5..d82690b806a 100644
--- a/gdb/dwarf2/tag.h
+++ b/gdb/dwarf2/tag.h
@@ -30,7 +30,6 @@ tag_is_type (dwarf_tag tag)
 {
   switch (tag)
     {
-    case DW_TAG_padding:
     case DW_TAG_array_type:
     case DW_TAG_class_type:
     case DW_TAG_enumeration_type:


More information about the Gdb-cvs mailing list