From 552c04a7423afb694bd4948e8896b3c4cc4be816 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 22 Nov 2001 00:23:13 +0000 Subject: Fix for PR gdb/209, PR gdb/156: * gdbarch.c, gdbarch.h: Rebuilt. * gdbarch.sh: Added `construct_inferior_arguments'. * cli/cli-decode.h (cmd_list_element): Added pre_show_hook. Typo fix. * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook. * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command. (inferior_argc, inferior_argv): New globals. (notice_args_set): New function. (set_inferior_args): Clear inferior_argc and inferior_argv. (set_inferior_args_vector): New function. (get_inferior_args): Handle inferior argument vector. (run_command): Use get_inferior_args(). (notice_args_read): New function. (_initialize_infcmd): Don't call set_inferior_args. * command.h: Typo fix. (cmd_list_element): Added pre_show_hook. * main.c (captured_main): Added --args option. (print_gdb_help): Document --args. * inferior.h (construct_inferior_arguments): Declare. (set_inferior_args_vector): Likewise. * fork-child.c (construct_inferior_arguments): New function. --- gdb/inferior.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/inferior.h') diff --git a/gdb/inferior.h b/gdb/inferior.h index 502d3ef..93c8d9b 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -270,6 +270,8 @@ extern void clone_and_follow_inferior (int, int *); extern void startup_inferior (int); +extern char *construct_inferior_arguments (struct gdbarch *, int, char **); + /* From inflow.c */ extern void new_tty_prefork (char *); @@ -307,6 +309,8 @@ extern char *get_inferior_args (void); extern char *set_inferior_args (char *); +extern void set_inferior_args_vector (int, char **); + /* Last signal that the inferior received (why it stopped). */ extern enum target_signal stop_signal; -- cgit v1.1