summaryrefslogtreecommitdiffstats
path: root/tools/debugscripts/kgdb
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2005-03-20 02:08:21 +0000
committerjmg <jmg@FreeBSD.org>2005-03-20 02:08:21 +0000
commitd4af181c4d3f94318b4503f252016541d2abd4b8 (patch)
treeea3e1c425715ca378ef291fbc6a179d0eaefe0bd /tools/debugscripts/kgdb
parent2283a8840c1306c8a636629e0796cd2148d9bf0e (diff)
downloadFreeBSD-src-d4af181c4d3f94318b4503f252016541d2abd4b8.zip
FreeBSD-src-d4af181c4d3f94318b4503f252016541d2abd4b8.tar.gz
I forgot to commit this fix that is now kgdb aware...
Diffstat (limited to 'tools/debugscripts/kgdb')
-rw-r--r--tools/debugscripts/kgdb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/debugscripts/kgdb b/tools/debugscripts/kgdb
index 2293c5b..ae580b3 100644
--- a/tools/debugscripts/kgdb
+++ b/tools/debugscripts/kgdb
@@ -61,5 +61,7 @@ tmpfile="/tmp/kgdb.asf.$$"
echo "Kernel Source: $kernsrc"
echo "Getting KLD information and locations..."
python $kld_debpy "$kernsrc" "$core" $@ > "$tmpfile" &&
-gdb $cmd_file -x "$tmpfile" -k -cd "$kernsrc" -s "$kernsrc/kernel.debug" -e "$kernsrc/kernel" -c "$core"
+echo "Please run the following command to load module symbols:"
+echo "source $tmpfile"
+(cd "$kernsrc"; kgdb "$kernsrc/kernel.debug" "$core")
rm "$tmpfile"
OpenPOWER on IntegriCloud