Meta: Explicitly configure source directory in debug-kernel.sh

Previously debug-kernel.sh wouldn't detect source if you launched the
script from the wrong path. By explicitly setting the name, source will
be loaded by gdb in all situations.
This commit is contained in:
Brian Gianforcaro 2021-08-18 17:04:09 -07:00 committed by Andreas Kling
parent abccb45060
commit ca9619c750
Notes: sideshowbarker 2024-07-18 05:29:33 +09:00

View file

@ -28,6 +28,7 @@ fi
exec $SERENITY_KERNEL_DEBUGGER \
-ex "file $(dirname "$0")/../Build/${SERENITY_ARCH:-i686}/Kernel/Prekernel/$prekernel_image" \
-ex "set confirm off" \
-ex "directory $(dirname "$0")/../Build/${SERENITY_ARCH:-i686}/" \
-ex "add-symbol-file $(dirname "$0")/../Build/${SERENITY_ARCH:-i686}/Kernel/Kernel -o $kernel_base" \
-ex "set confirm on" \
-ex "set arch $gdb_arch" \