From: Tom Tromey Date: Tue, 14 May 2013 20:37:57 +0000 (+0000) Subject: * eval.c (parse_and_eval_long): Make 'exp' const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1b8c4cc7e0d8ff5b4b7a80ed61be6f7e88e3eb9;p=binutils-gdb.git * eval.c (parse_and_eval_long): Make 'exp' const. * value.h (parse_and_eval_long): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 63962355f95..a620afb8a50 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-14 Tom Tromey + + * eval.c (parse_and_eval_long): Make 'exp' const. + * value.h (parse_and_eval_long): Update. + 2013-05-14 Tom Tromey * ui-file.c (gdb_fopen): Make arguments const. diff --git a/gdb/eval.c b/gdb/eval.c index cf1fda96b6f..539489f95cb 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -91,7 +91,7 @@ parse_and_eval_address (const char *exp) /* Like parse_and_eval_address, but treats the value of the expression as an integer, not an address, returns a LONGEST, not a CORE_ADDR. */ LONGEST -parse_and_eval_long (char *exp) +parse_and_eval_long (const char *exp) { struct expression *expr = parse_expression (exp); LONGEST retval; diff --git a/gdb/value.h b/gdb/value.h index d070d56ba85..4e839d3939f 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -732,7 +732,7 @@ extern struct type *parse_and_eval_type (char *p, int length); extern CORE_ADDR parse_and_eval_address (const char *exp); -extern LONGEST parse_and_eval_long (char *exp); +extern LONGEST parse_and_eval_long (const char *exp); extern void unop_promote (const struct language_defn *language, struct gdbarch *gdbarch,