Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Patch: fix gdb_gcore.sh failure in ash/dash
@ 2005-09-10  2:18 Qunying Pan
  2005-09-11  1:12 ` Michael Snyder
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Qunying Pan @ 2005-09-10  2:18 UTC (permalink / raw)
  To: gdb-patches; +Cc: drow, qunyingpan

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


2005-09-09 Qunying Pan <qpan@mvista.com>

    *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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-10-02 23:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-10  2:18 Patch: fix gdb_gcore.sh failure in ash/dash Qunying Pan
2005-09-11  1:12 ` Michael Snyder
2005-09-11  4:35   ` Daniel Jacobowitz
2005-09-11 21:37     ` Qunying Pan
2005-09-11 21:19 ` Mark Kettenis
2005-09-11 23:08   ` Daniel Jacobowitz
2005-09-17 21:58 ` Daniel Jacobowitz
2005-09-17 22:18   ` Mark Kettenis
2005-09-17 22:27     ` Daniel Jacobowitz
2005-09-26  1:52       ` Daniel Jacobowitz
2005-09-26  7:20         ` Mark Kettenis
2005-10-02 23:01           ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox