* value.h (find_function_in_inferior): Add const keyword to
one of the parameters. Allows us to invoke this function with a const char *. * valops.c (find_function_in_inferior): Likewise.
This commit is contained in:
parent
4cfa75e2b2
commit
3bada2a2df
|
@ -1,3 +1,10 @@
|
|||
2002-09-12 Joel Brobecker <brobecker@gnat.com>
|
||||
|
||||
* value.h (find_function_in_inferior): Add const keyword to
|
||||
one of the parameters. Allows us to invoke this function with
|
||||
a const char *.
|
||||
* valops.c (find_function_in_inferior): Likewise.
|
||||
|
||||
2002-09-12 Joel Brobecker <brobecker@gnat.com>
|
||||
|
||||
* exec.c (xfer_memory): Fix compilation warning with old versions
|
||||
|
|
|
@ -95,7 +95,7 @@ int unwind_on_signal_p = 0;
|
|||
/* Find the address of function name NAME in the inferior. */
|
||||
|
||||
struct value *
|
||||
find_function_in_inferior (char *name)
|
||||
find_function_in_inferior (const char *name)
|
||||
{
|
||||
register struct symbol *sym;
|
||||
sym = lookup_symbol (name, 0, VAR_NAMESPACE, 0, NULL);
|
||||
|
|
|
@ -558,7 +558,7 @@ extern struct value *value_literal_complex (struct value *, struct value *,
|
|||
extern void find_rt_vbase_offset (struct type *, struct type *, char *, int,
|
||||
int *, int *);
|
||||
|
||||
extern struct value *find_function_in_inferior (char *);
|
||||
extern struct value *find_function_in_inferior (const char *);
|
||||
|
||||
extern struct value *value_allocate_space_in_inferior (int);
|
||||
|
||||
|
|
Loading…
Reference in New Issue