From: Daniel Jacobowitz Date: Sat, 21 Jun 2003 18:38:28 +0000 (+0000) Subject: * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=325ed0891530d43b77e4d77d300d849243cc6838;p=binutils-gdb.git * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h) * cli/cli-cmds.c: Include "gdb_vfork.h". (shell_escape): Use vfork. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab9ab4569fe..624d14f7016 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-06-21 Daniel Jacobowitz + + * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h) + * cli/cli-cmds.c: Include "gdb_vfork.h". + (shell_escape): Use vfork. + 2003-06-21 Andrew Cagney * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling diff --git a/gdb/Makefile.in b/gdb/Makefile.in index bd4f6cd9af0..22c7aa91a39 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2416,7 +2416,7 @@ cli-cmds.o: $(srcdir)/cli/cli-cmds.c $(defs_h) $(completer_h) $(target_h) \ $(gdb_wait_h) $(gdb_regex_h) $(gdb_string_h) $(filenames_h) \ $(ui_out_h) $(top_h) $(cli_decode_h) $(cli_script_h) \ $(cli_setshow_h) $(cli_cmds_h) $(source_h) $(linespec_h) \ - $(expression_h) $(language_h) $(objfiles_h) + $(expression_h) $(language_h) $(objfiles_h) $(gdb_vfork_h) $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c cli-decode.o: $(srcdir)/cli/cli-decode.c $(defs_h) $(symtab_h) \ $(gdb_regex_h) $(gdb_string_h) $(ui_out_h) $(cli_cmds_h) \ diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 999ae72992d..312db5cbd0d 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -26,6 +26,7 @@ #include "gdb_wait.h" /* For shell escape implementation */ #include "gdb_regex.h" /* Used by apropos_command */ #include "gdb_string.h" +#include "gdb_vfork.h" #include "linespec.h" #include "expression.h" #include "frame.h" @@ -509,7 +510,7 @@ shell_escape (char *arg, int from_tty) else p++; /* Get past '/' */ - if ((pid = fork ()) == 0) + if ((pid = vfork ()) == 0) { if (!arg) execl (user_shell, p, 0);