Skip to content

Commit

Permalink
Meta: Handle LAGOM_EXECUTABLE in gdb command properly
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya authored and ADKaster committed Jun 29, 2024
1 parent 4cdc5d2 commit 8c09b9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Meta/ladybird.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
}

Expand Down

0 comments on commit 8c09b9a

Please sign in to comment.