aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-14 20:37:57 +0000
committerTom Tromey <tromey@redhat.com>2013-05-14 20:37:57 +0000
commita1b8c4cc7e0d8ff5b4b7a80ed61be6f7e88e3eb9 (patch)
tree9ab62e958be963ef48bcd34d752127ab12debb09 /gdb/eval.c
parent23b3a2c3d1cc06cd1f9b2d5f72ab2f1c913f675d (diff)
downloadgdb-a1b8c4cc7e0d8ff5b4b7a80ed61be6f7e88e3eb9.zip
gdb-a1b8c4cc7e0d8ff5b4b7a80ed61be6f7e88e3eb9.tar.gz
gdb-a1b8c4cc7e0d8ff5b4b7a80ed61be6f7e88e3eb9.tar.bz2
* eval.c (parse_and_eval_long): Make 'exp' const.
* value.h (parse_and_eval_long): Update.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index cf1fda9..539489f 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;