diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-14 20:37:57 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-14 20:37:57 +0000 |
commit | a1b8c4cc7e0d8ff5b4b7a80ed61be6f7e88e3eb9 (patch) | |
tree | 9ab62e958be963ef48bcd34d752127ab12debb09 | |
parent | 23b3a2c3d1cc06cd1f9b2d5f72ab2f1c913f675d (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/eval.c | 2 | ||||
-rw-r--r-- | gdb/value.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6396235..a620afb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-05-14 Tom Tromey <tromey@redhat.com> + * eval.c (parse_and_eval_long): Make 'exp' const. + * value.h (parse_and_eval_long): Update. + +2013-05-14 Tom Tromey <tromey@redhat.com> + * ui-file.c (gdb_fopen): Make arguments const. * ui-file.h (gdb_fopen): Make arguments const. @@ -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 d070d56..4e839d3 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, |