aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-11-18 18:51:34 -0700
committerTom Tromey <tom@tromey.com>2024-01-28 10:58:16 -0700
commit13eade6a108d3c07aec165d867099a0d9d4325fe (patch)
tree73e66f67187354b8d2e4f30c94a276bdeacefc19
parent83c8b5eb334a77249e5b8f20ed891c227d8e42ae (diff)
downloadbinutils-13eade6a108d3c07aec165d867099a0d9d4325fe.zip
binutils-13eade6a108d3c07aec165d867099a0d9d4325fe.tar.gz
binutils-13eade6a108d3c07aec165d867099a0d9d4325fe.tar.bz2
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.
-rw-r--r--gdb/mdebugread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 73df0ed..13c9401 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);