From: Tom Tromey Date: Sun, 19 Nov 2023 01:51:34 +0000 (-0700) Subject: Fix latent bug in mdebugread.c X-Git-Tag: gdb-15-branchpoint~1122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13eade6a108d3c07aec165d867099a0d9d4325fe;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 73df0ed8165..13c9401d171 100644 --- a/gdb/mdebugread.c +++ b/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);