]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: fix unknown variable typo in c-exp.y
authorAndrew Burgess <aburgess@redhat.com>
Mon, 22 Apr 2024 09:25:51 +0000 (10:25 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 22 Apr 2024 09:39:37 +0000 (10:39 +0100)
Fix 'val' -> 'value' typo in c-exp.y which was breaking the build.
Introduced in commit:

  commit e6375bc8ebbbc177c79f08e9616eb0b131229f65
  Date:   Wed Apr 17 16:17:33 2024 -0600

      Remove some alloca uses

gdb/c-exp.y

index 87aca4d59b1e984a169a9acc219d160437d8a2cd..5db63551d218f0c7c2e2c419dcb857724395321c 100644 (file)
@@ -3430,7 +3430,7 @@ c_print_token (FILE *file, int type, YYSTYPE value)
     case CHAR:
     case STRING:
       parser_fprintf (file, "tsval<type=%d, %.*s>", value.tsval.type,
-                     value.tsval.length, val.tsval.ptr);
+                     value.tsval.length, value.tsval.ptr);
       break;
 
     case NSSTRING: