Browse Source

Fix latent bug in mdebugread.c

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.
users/ARM/gcs-binutils-gdb-master
Tom Tromey 3 years ago
parent
commit
13eade6a10
  1. 2
      gdb/mdebugread.c

2
gdb/mdebugread.c

@ -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);

Loading…
Cancel
Save