diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-08-18 17:04:09 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-19 11:42:20 +0200 |
commit | ca9619c75043a300c1388e2c6712532ce18ad173 (patch) | |
tree | 24f970c64710a22fd92db7c1540002e6bc398576 /Meta/debug-kernel.sh | |
parent | abccb45060baa12257dea470c97a89a803feaa6f (diff) | |
download | serenity-ca9619c75043a300c1388e2c6712532ce18ad173.zip |
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.
Diffstat (limited to 'Meta/debug-kernel.sh')
-rwxr-xr-x | Meta/debug-kernel.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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" \ |