]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.3-gstack-without-path-20060414.patch
- update to 6.8.91.20090930-1 from fedora
[packages/gdb.git] / gdb-6.3-gstack-without-path-20060414.patch
1 Index: gdb-6.3/gdb/gstack.sh
2 ===================================================================
3 --- gdb-6.3.orig/gdb/gstack.sh  2006-02-14 17:21:05.000000000 -0200
4 +++ gdb-6.3/gdb/gstack.sh       2006-04-14 03:17:12.000000000 -0300
5 @@ -17,17 +17,17 @@ fi
6  backtrace="bt"
7  if test -d /proc/$1/task ; then
8      # Newer kernel; has a task/ directory.
9 -    if test `ls /proc/$1/task | wc -l` -gt 1 2>/dev/null ; then
10 +    if test `/bin/ls /proc/$1/task | /usr/bin/wc -l` -gt 1 2>/dev/null ; then
11         backtrace="thread apply all bt"
12      fi
13  elif test -f /proc/$1/maps ; then
14      # Older kernel; go by it loading libpthread.
15 -    if grep -e libpthread /proc/$1/maps > /dev/null 2>&1 ; then
16 +    if /bin/grep -e libpthread /proc/$1/maps > /dev/null 2>&1 ; then
17         backtrace="thread apply all bt"
18      fi
19  fi
20  
21 -GDB=${GDB:-gdb}
22 +GDB=${GDB:-/usr/bin/gdb}
23  
24  if $GDB -nx --quiet --batch --readnever > /dev/null 2>&1; then
25      readnever=--readnever
26 @@ -39,7 +39,7 @@ fi
27  set pagination no
28  $backtrace
29  EOF
30 -sed -n \
31 +/bin/sed -n \
32      -e 's/^(gdb) //' \
33      -e '/^#/p' \
34      -e '/^Thread/p'
This page took 0.042848 seconds and 3 git commands to generate.