From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3076 invoked by alias); 16 Feb 2002 10:03:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3008 invoked from network); 16 Feb 2002 10:03:12 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (63.148.183.200) by sources.redhat.com with SMTP; 16 Feb 2002 10:03:12 -0000 Received: from cgf.cipe.redhat.com (cgf.cipe.redhat.com [10.0.1.172]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g1GA3Bg06989 for ; Sat, 16 Feb 2002 05:03:11 -0500 Received: (from cgf@localhost) by cgf.cipe.redhat.com (8.11.6/8.8.7) id g1G2di022556 for gdb-patches@sources.redhat.com; Fri, 15 Feb 2002 21:39:44 -0500 Date: Sat, 16 Feb 2002 02:03:00 -0000 From: Christopher Faylor To: gdb-patches@sources.redhat.com Subject: [PATCH] run > file for win32 Message-ID: <20020216023944.GA22542@redhat.com> Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-02/txt/msg00445.txt.bz2 I've just adapted some patches from Tak Ota to win32-nat.c. Tak's patch didn't seem to be complete but the concept was so nice that I took some time in the last few days and finished things. The result is that you can use shell meta characters in gdb now, so things like 'run < foo > bar' now work. Since this is a departure from previous behavior, I turned this is off by default. I added a 'set shell' command to control whether it is used or not. Hmm. I forgot to document this, didn't I? I'll submit that patch later. Thanks you for your contribution, Tak! I've wanted this in the windows version of gdb for a long time. cgf 2002-02-15 Christopher Faylor Tak Ota * win32-nat.c (get_image_name): New function. (handle_load_dll): Use get_image_name function. (get_child_debug_event): Avoid registering debug events until possibly execed process is started. (child_create_inferior): Allow invocation via shell so that command line redirection, etc. works ok. (_initialize_inftarg): Add new command: "set shell" to control whether a shell is used to start a process.