]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix latent bug in mdebugread.c
authorTom Tromey <tom@tromey.com>
Sun, 19 Nov 2023 01:51:34 +0000 (18:51 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jan 2024 17:58:16 +0000 (10:58 -0700)
mdebugread.c makes a label symbol but puts it into VAR_DOMAIN.  I
think LABEL_DOMAIN is more appropriate.

I don't have a way to test this.

gdb/mdebugread.c

index 73df0ed8165d81e8513c113b78a9ba67bfedb389..13c9401d1714daa2426df1f07db6272c59750aa9 100644 (file)
@@ -711,7 +711,7 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
 
     case stLabel:              /* label, goes into current block.  */
       s = new_symbol (name);
-      s->set_domain (VAR_DOMAIN);      /* So that it can be used */
+      s->set_domain (LABEL_DOMAIN);    /* So that it can be used */
       s->set_aclass_index (LOC_LABEL); /* but not misused.  */
       s->set_section_index (section_index);
       s->set_value_address (sh->value);