From bd57a74827f57fff3091846922548baa2bdf9d27 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 17 Jun 2009 18:35:33 +0000 Subject: * gdbarch.sh (construct_inferior_arguments): Remove. * gdbarch.c, gdbarch.h: Regenerate. * infcmd.c (get_inferior_args): Call construct_inferior_arguments directly instead of gdbarch_construct_inferior_arguments. (construct_inferior_arguments): Remove GDBARCH argument. * inferior.h (construct_inferior_arguments): Likewise. --- gdb/infcmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 422993f..6140777 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -194,8 +194,7 @@ get_inferior_args (void) { char *n, *old; - n = gdbarch_construct_inferior_arguments (current_gdbarch, - inferior_argc, inferior_argv); + n = construct_inferior_arguments (inferior_argc, inferior_argv); old = set_inferior_args (n); xfree (old); } @@ -247,7 +246,7 @@ notice_args_read (struct ui_file *file, int from_tty, /* Compute command-line string given argument vector. This does the same shell processing as fork_inferior. */ char * -construct_inferior_arguments (struct gdbarch *gdbarch, int argc, char **argv) +construct_inferior_arguments (int argc, char **argv) { char *result; -- cgit v1.1