aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2011-03-04 20:07:22 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2011-03-04 20:07:22 +0000
commit63ffa6eea3815c2bbe36bf4df525315bc1c1b18f (patch)
tree5bb433e1bf75e0c1880f1c9583b0e9c2bc311a99 /gdb/eval.c
parenta17d146e2e387b160d4c331f7ce8268eb2e348d7 (diff)
downloadgdb-63ffa6eea3815c2bbe36bf4df525315bc1c1b18f.zip
gdb-63ffa6eea3815c2bbe36bf4df525315bc1c1b18f.tar.gz
gdb-63ffa6eea3815c2bbe36bf4df525315bc1c1b18f.tar.bz2
* eval.c (parse_and_eval_address_1): Remove function.
* linespec.c (decode_indirect): Call parse_to_comma_and_eval instead of parse_and_eval_address_1. * value.h (parse_and_eval_address_1): Remove prototype.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 4db0466..09b41a0 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -93,22 +93,6 @@ parse_and_eval_address (char *exp)
return addr;
}
-/* Like parse_and_eval_address but takes a pointer to a char * variable
- and advanced that variable across the characters parsed. */
-
-CORE_ADDR
-parse_and_eval_address_1 (char **expptr)
-{
- struct expression *expr = parse_exp_1 (expptr, (struct block *) 0, 0);
- CORE_ADDR addr;
- struct cleanup *old_chain =
- make_cleanup (free_current_contents, &expr);
-
- addr = value_as_address (evaluate_expression (expr));
- do_cleanups (old_chain);
- return addr;
-}
-
/* 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