Skip to content
Snippets Groups Projects
Commit 247fce9b authored by Fons Rademakers's avatar Fons Rademakers
Browse files

From Bill Tanenbaum:

When running a job in the background from a terminal, a GDB backtrace
hangs indefintely. Apparently, this is due to a bug in gdb rather than ROOT.
This patch fixes the issue.


git-svn-id: http://root.cern.ch/svn/root/trunk@36776 27541ba8-7e3a-0410-8455-c3a389f83636
parent a0905844
Branches
Tags
No related merge requests found
...@@ -85,7 +85,7 @@ else ...@@ -85,7 +85,7 @@ else
# Run GDB, strip out unwanted noise. # Run GDB, strip out unwanted noise.
have_eval_command=`gdb --help 2>&1 |grep eval-command` have_eval_command=`gdb --help 2>&1 |grep eval-command`
if ! test "x$have_eval_command" = "x"; then if ! test "x$have_eval_command" = "x"; then
$GDB --batch --eval-command="$backtrace" /proc/$1/exe $1 2>&1 | $GDB --batch --eval-command="$backtrace" /proc/$1/exe $1 2>&1 < /dev/null |
/bin/sed -n \ /bin/sed -n \
-e 's/^(gdb) //' \ -e 's/^(gdb) //' \
-e '/^#/p' \ -e '/^#/p' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment