From: Joel Brobecker Date: Fri, 13 Sep 2002 00:18:33 +0000 (+0000) Subject: * value.h (find_function_in_inferior): Add const keyword to X-Git-Tag: drow-cplus-branchpoint~335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bada2a2df47a36a9c44e1cc50669124af7f6370;p=platform%2Fupstream%2Fbinutils.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f51bafb..7bd6d01 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2002-09-12 Joel Brobecker + * 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 + * exec.c (xfer_memory): Fix compilation warning with old versions of GCC. * tracepoint.c (trace_find_tracepoint_command): Likewise. diff --git a/gdb/valops.c b/gdb/valops.c index 1eeedd3..b2199cb 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -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); diff --git a/gdb/value.h b/gdb/value.h index 448c222..efabecb 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -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);