diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-12-25 22:24:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-12-25 22:24:39 +0000 |
commit | f976f6d464baa59f8d890626648c74943aed1ce1 (patch) | |
tree | f542587c8c572708118ff623e37384230261e87f /gdb/printcmd.c | |
parent | 06b25f14b06f7ce665b495a436afc79d0c91a97f (diff) | |
download | gdb-f976f6d464baa59f8d890626648c74943aed1ce1.zip gdb-f976f6d464baa59f8d890626648c74943aed1ce1.tar.gz gdb-f976f6d464baa59f8d890626648c74943aed1ce1.tar.bz2 |
* cli/cli-script.c (execute_control_command): Replace value_ptr
with a struct value pointer.
* ch-lang.c (evaluate_subexp_chill): Ditto.
* printcmd.c (printf_command): Ditto.
* tracepoint.c (set_traceframe_context): Ditto.
(encode_actions): Ditto.
* eval.c (evaluate_subexp_standard): Ditto.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index bb02d8d..9db1547 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2045,7 +2045,8 @@ printf_command (char *arg, int from_tty) int allocated_args = 20; struct cleanup *old_cleanups; - val_args = (value_ptr *) xmalloc (allocated_args * sizeof (value_ptr)); + val_args = (struct value **) xmalloc (allocated_args + * sizeof (struct value *)); old_cleanups = make_cleanup (free_current_contents, &val_args); if (s == 0) @@ -2209,9 +2210,9 @@ printf_command (char *arg, int from_tty) { char *s1; if (nargs == allocated_args) - val_args = (value_ptr *) xrealloc ((char *) val_args, - (allocated_args *= 2) - * sizeof (value_ptr)); + val_args = (struct value **) xrealloc ((char *) val_args, + (allocated_args *= 2) + * sizeof (struct value *)); s1 = s; val_args[nargs] = parse_to_comma_and_eval (&s1); |