mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
system: kgdb wants debug version
This commit is contained in:
parent
9e25bf7c85
commit
64be3606c4
@ -20,9 +20,10 @@ while read DEV MP TYPE MORE; do
|
||||
savecore /var/crash ${DEV}
|
||||
fi
|
||||
for VMCORE in $(find /var/crash -type f -name "vmcore.*"); do
|
||||
KERNEL="/var/crash/kernel.${VMCORE##*.}"
|
||||
if [ ! -x ${KERNEL} ]; then
|
||||
cp "$(sysctl -n kern.bootfile)" ${KERNEL}
|
||||
DST="/var/crash/kernel.${VMCORE##*.}"
|
||||
SRC="/usr/lib/debug/$(sysctl -n kern.bootfile).debug"
|
||||
if [ -e ${SRC} && [ ! -e ${DST} ]; then
|
||||
cp ${SRC} ${DST}
|
||||
fi
|
||||
done
|
||||
exit 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user