[binutils-gdb] gdb: fix DW_AT_compile_unit -> DW_TAG_compile_unit in comment

Simon Marchi simark@sourceware.org
Fri May 30 20:20:32 GMT 2025


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

commit d85862106f524244fd24816f476403ae8ca28ae2
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Fri May 30 16:19:40 2025 -0400

    gdb: fix DW_AT_compile_unit -> DW_TAG_compile_unit in comment
    
    While (mistakenly) grepping for DW_AT_compile_unit, I found this typo.
    
    Change-Id: I04d97d7b1b27eacfca9da3853711b6092d330575

Diff:
---
 gdb/dwarf2/cu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/dwarf2/cu.h b/gdb/dwarf2/cu.h
index 5338dfe4b45..69f396c774a 100644
--- a/gdb/dwarf2/cu.h
+++ b/gdb/dwarf2/cu.h
@@ -369,7 +369,7 @@ public:
      right place.  And since the DW_TAG_compile_unit DIE in the split-unit can't
      have a DW_AT_ranges attribute, we can use the
 
-       die->tag != DW_AT_compile_unit
+       die->tag != DW_TAG_compile_unit
 
      to determine whether the base should be added or not.  */
   ULONGEST gnu_ranges_base = 0;


More information about the Gdb-cvs mailing list