diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-04-09 13:23:24 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-04-09 16:51:11 +0200 |
commit | 83701ec54b12af141ce10e910604c9e130f16f76 (patch) | |
tree | 4598e76ebd62306d32163603d055c043ef218346 /Meta/debug-kernel.sh | |
parent | 022a55e8251780774b9bda94e289ad19f4b6e7e1 (diff) | |
download | serenity-83701ec54b12af141ce10e910604c9e130f16f76.zip |
Meta+Toolchain: Redirect GDB error output to stdout before grepping
Diffstat (limited to 'Meta/debug-kernel.sh')
-rwxr-xr-x | Meta/debug-kernel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/debug-kernel.sh b/Meta/debug-kernel.sh index 506ea79dfc..04afa992b0 100755 --- a/Meta/debug-kernel.sh +++ b/Meta/debug-kernel.sh @@ -16,7 +16,7 @@ if [ -z "$SERENITY_KERNEL_DEBUGGER" ]; then SERENITY_KERNEL_DEBUGGER="$SERENITY_ARCH-pc-serenity-gdb" elif command -v "$SERENITY_ARCH-elf-gdb" >/dev/null; then SERENITY_KERNEL_DEBUGGER="$SERENITY_ARCH-elf-gdb" - elif command -v gdb >/dev/null && gdb -ex 'set architecture' -ex 'quit' | grep "${SERENITY_ARCH//_/-}"; then + elif command -v gdb >/dev/null && gdb -ex 'set architecture' -ex 'quit' 2>&1 | grep "${SERENITY_ARCH//_/-}"; then SERENITY_KERNEL_DEBUGGER="gdb" else echo "Error: No suitable GDB installation found." >&2 |