From ca9619c75043a300c1388e2c6712532ce18ad173 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Wed, 18 Aug 2021 17:04:09 -0700 Subject: 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. --- Meta/debug-kernel.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'Meta/debug-kernel.sh') diff --git a/Meta/debug-kernel.sh b/Meta/debug-kernel.sh index c12791654a..47d4bdc25e 100755 --- a/Meta/debug-kernel.sh +++ b/Meta/debug-kernel.sh @@ -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" \ -- cgit v1.2.3