mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
now this works
This commit is contained in:
9
rungdb
9
rungdb
@@ -4,19 +4,14 @@ if [ "$#" -gt 0 ]; then
|
||||
else
|
||||
brk=""
|
||||
fi
|
||||
gdb="$(pwd)/buildroot/output/host/usr/bin/x86_64-linux-gdb"
|
||||
gdb="$(pwd)/buildroot/output/host/usr/bin/arm-linux-gdb"
|
||||
cd buildroot/output/build/linux-*.*.*/
|
||||
cmd="$gdb \
|
||||
-q \
|
||||
-ex 'add-auto-load-safe-path $(pwd)' \
|
||||
-ex 'file vmlinux' \
|
||||
-ex 'set arch i386:x86-64:intel' \
|
||||
-ex 'target remote localhost:1234' \
|
||||
$brk \
|
||||
-ex 'continue' \
|
||||
-ex 'disconnect' \
|
||||
-ex 'set arch i386:x86-64' \
|
||||
-ex 'target remote localhost:1234' \
|
||||
-ex 'lx-symbols ../kernel_module-1.0/'
|
||||
"
|
||||
#-ex 'set arch i386:x86-64:intel' \
|
||||
eval "$cmd"
|
||||
|
||||
Reference in New Issue
Block a user