aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-11-10 15:46:17 -0700
committerTom Tromey <tom@tromey.com>2020-11-10 15:46:19 -0700
commitbaf20f7627811d7bd96806ee5ff756899159fd70 (patch)
tree1f37214e9da6c69358518f8af183930ad4ed9bee /gdb/value.c
parentcaaece0e2f523049d77ca1bafc1fea911f9c25c7 (diff)
downloadgdb-baf20f7627811d7bd96806ee5ff756899159fd70.zip
gdb-baf20f7627811d7bd96806ee5ff756899159fd70.tar.gz
gdb-baf20f7627811d7bd96806ee5ff756899159fd70.tar.bz2
Make internalvar_name return a const char *
This changes internalvar_name to return a const char *. gdb/ChangeLog 2020-11-10 Tom Tromey <tom@tromey.com> * value.h (internalvar_name): Update. * value.c (internalvar_name): Make return type const.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 7db3d3e..c9907fa 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -2379,7 +2379,7 @@ clear_internalvar (struct internalvar *var)
var->kind = INTERNALVAR_VOID;
}
-char *
+const char *
internalvar_name (const struct internalvar *var)
{
return var->name;