aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-12-04 08:15:14 -0700
committerTom Tromey <tromey@adacore.com>2020-12-04 08:17:18 -0700
commit91f8721328eaab19d0613f6b5377849fe252c9c0 (patch)
tree0c52f144965c30ef2963e70f12655829da37637e /gdb/value.h
parent5382f97180f5be551868449e411a4daaebf232fb (diff)
downloadgdb-91f8721328eaab19d0613f6b5377849fe252c9c0.zip
gdb-91f8721328eaab19d0613f6b5377849fe252c9c0.tar.gz
gdb-91f8721328eaab19d0613f6b5377849fe252c9c0.tar.bz2
Constify value_internal_function_name
I noticed that value_internal_function_name should have a const return type. This patch makes this change. gdb/ChangeLog 2020-12-04 Tom Tromey <tromey@adacore.com> * value.c (value_internal_function_name): Make return type const. * value.h (value_internal_function_name): Make return type const.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 2bd1999d..d026c8e 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -1198,7 +1198,7 @@ struct value *call_internal_function (struct gdbarch *gdbarch,
struct value *function,
int argc, struct value **argv);
-char *value_internal_function_name (struct value *);
+const char *value_internal_function_name (struct value *);
/* Build a value wrapping and representing WORKER. The value takes ownership
of the xmethod_worker object. */