]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: fix DW_AT_compile_unit -> DW_TAG_compile_unit in comment
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 30 May 2025 20:19:40 +0000 (16:19 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 30 May 2025 20:19:47 +0000 (16:19 -0400)
While (mistakenly) grepping for DW_AT_compile_unit, I found this typo.

Change-Id: I04d97d7b1b27eacfca9da3853711b6092d330575

gdb/dwarf2/cu.h

index 5338dfe4b45c69bebe6d51856dd106ce45b98535..69f396c774a64c5bf839b20d4c2ab41ed6dfa69f 100644 (file)
@@ -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;