Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150050696
D34478.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34478.diff
View Options
diff --git a/usr.sbin/crashinfo/crashinfo.sh b/usr.sbin/crashinfo/crashinfo.sh
--- a/usr.sbin/crashinfo/crashinfo.sh
+++ b/usr.sbin/crashinfo/crashinfo.sh
@@ -44,19 +44,6 @@
[ -e $VMCORE ] && rm -f $VMCORE
}
-# Find a gdb binary to use and save the value in GDB.
-find_gdb()
-{
- local binary
-
- for binary in /usr/local/bin/gdb /usr/libexec/gdb; do
- if [ -x ${binary} ]; then
- GDB=${binary}
- return
- fi
- done
-}
-
# Run a single gdb command against a kernel file in batch mode.
# The kernel file is specified as the first argument and the command
# is given in the remaining arguments.
@@ -66,11 +53,7 @@
k=$1 ; shift
- if [ ${GDB} = /usr/local/bin/gdb ]; then
- ${GDB} -batch -ex "$@" $k
- else
- echo -e "$@" | ${GDB} -x /dev/stdin -batch $k
- fi
+ ${GDB} -batch -ex "$@" $k
}
find_kernel()
@@ -173,8 +156,8 @@
exec > $FILE 2>&1
fi
-find_gdb
-if [ -z "$GDB" ]; then
+GDB=/usr/local/bin/gdb
+if [ ! -x "$GDB" ]; then
echo "Unable to find a kernel debugger."
echo "Please install the devel/gdb port or gdb package."
exit 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 12:25 AM (3 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30563269
Default Alt Text
D34478.diff (1 KB)
Attached To
Mode
D34478: crashinfo: remove gdb 6.1 leftovers
Attached
Detach File
Event Timeline
Log In to Comment