Meta: Handle LAGOM_EXECUTABLE in gdb command properly
This commit is contained in:
parent
4cdc5d2ce9
commit
8c09b9a2e9
Notes:
sideshowbarker
2024-07-17 01:46:00 +09:00
Author: https://github.com/luozhiya Commit: https://github.com/LadybirdBrowser/ladybird/commit/8c09b9a2e9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/313 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 7 additions and 0 deletions
|
@ -161,6 +161,13 @@ run_gdb() {
|
|||
if [ "$PASS_ARG_TO_GDB" != "" ]; then
|
||||
GDB_ARGS+=( "$PASS_ARG_TO_GDB" )
|
||||
fi
|
||||
if [ "$LAGOM_EXECUTABLE" = "ladybird" ]; then
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
LAGOM_EXECUTABLE="Ladybird.app"
|
||||
else
|
||||
LAGOM_EXECUTABLE="Ladybird"
|
||||
fi
|
||||
fi
|
||||
gdb "$BUILD_DIR/bin/$LAGOM_EXECUTABLE" "${GDB_ARGS[@]}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue