Commit 91f87213 authored by Tom Tromey's avatar Tom Tromey
Browse files

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.
parent 5382f971
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.
2020-12-04 Luis Machado <luis.machado@linaro.org> 2020-12-04 Luis Machado <luis.machado@linaro.org>
   
* aarch64-tdep.c (submask, bit, bits): Remove. * aarch64-tdep.c (submask, bit, bits): Remove.
......
...@@ -2397,7 +2397,7 @@ create_internal_function (const char *name, ...@@ -2397,7 +2397,7 @@ create_internal_function (const char *name,
return ifn; return ifn;
} }
char * const char *
value_internal_function_name (struct value *val) value_internal_function_name (struct value *val)
{ {
struct internal_function *ifn; struct internal_function *ifn;
......
...@@ -1198,7 +1198,7 @@ struct value *call_internal_function (struct gdbarch *gdbarch, ...@@ -1198,7 +1198,7 @@ struct value *call_internal_function (struct gdbarch *gdbarch,
struct value *function, struct value *function,
int argc, struct value **argv); 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 /* Build a value wrapping and representing WORKER. The value takes ownership
of the xmethod_worker object. */ of the xmethod_worker object. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment