From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14005 invoked by alias); 11 Sep 2005 01:12:25 -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 13981 invoked by uid 22791); 11 Sep 2005 01:12:19 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 11 Sep 2005 01:12:19 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j8B1CHXf015770 for ; Sat, 10 Sep 2005 21:12:17 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j8B1CGV18266; Sat, 10 Sep 2005 21:12:16 -0400 Received: from [172.16.24.50] (bluegiant.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j8B1CCuR026396; Sat, 10 Sep 2005 21:12:13 -0400 Message-ID: <4323846C.3090303@redhat.com> Date: Sun, 11 Sep 2005 01:12:00 -0000 From: Michael Snyder User-Agent: Mozilla Thunderbird (X11/20050322) MIME-Version: 1.0 To: Qunying Pan CC: gdb-patches@sources.redhat.com, drow@false.org, qunyingpan@gmail.com Subject: Re: Patch: fix gdb_gcore.sh failure in ash/dash References: <432240C1.9000308@mvista.com> In-Reply-To: <432240C1.9000308@mvista.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-09/txt/msg00070.txt.bz2 Qunying Pan wrote: > Hi, > > Running gdb_gcore.sh in ash/dash fails with message "Hangup detected on > fd 0". The following patch fixes the problem. Acceptable? > > Thanks, > > Qunying That's creative. I assume it tests out OK with bash? > 2005-09-09 Qunying Pan > > *gdb_gcore.sh: Invoke gdb in batch mode to fix gdb_gcore.sh failure > in ash/dash. > > > --- src/gdb/gdb_gcore.sh.orig 2005-09-09 16:56:04.000000000 -0700 > +++ src/gdb/gdb_gcore.sh 2005-09-09 16:58:12.000000000 -0700 > @@ -1,6 +1,6 @@ > #!/bin/sh > > -# Copyright 2003 Free Software Foundation, Inc. > +# Copyright 2003, 2004, 2005 Free Software Foundation, Inc. > > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by > @@ -59,7 +59,7 @@ do > # Avoid need for temporary files by using funky "here > # document" feature of sh. > > - /usr/bin/gdb > /dev/null << EOF > + /usr/bin/gdb -batch -x /dev/stdin > /dev/null << EOF > attach $pid > gcore $name.$pid > detach > >