mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
37 lines
601 B
Bash
Executable File
37 lines
601 B
Bash
Executable File
#!/bin/bash
|
|
|
|
RUNDIR=$(dirname "$0")
|
|
pushd "$RUNDIR" >/dev/null
|
|
RUNDIR=$(pwd)
|
|
popd >/dev/null
|
|
|
|
cd "$RUNDIR"
|
|
|
|
if [ "$GDB" = "" ]; then
|
|
GDB=$(which ggdb)
|
|
fi
|
|
|
|
if [ "$GDB" = "" ]; then
|
|
GDB=$(which gdb-multiarch)
|
|
fi
|
|
|
|
if [ "$GDB" = "" ]; then
|
|
GDB=$(which gdb)
|
|
fi
|
|
|
|
if [ "$GDB" = "" ]; then
|
|
echo "Failed to find GDB"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$GDB_PORT" = "" ]; then
|
|
GDB_PORT=8864
|
|
fi
|
|
|
|
"$GDB" -ex "target remote localhost:$GDB_PORT" \
|
|
-ex "source Scripts/gdb_uefi.py" \
|
|
-ex "set pagination off" \
|
|
-ex "reload-uefi" \
|
|
-ex "b DebugBreak" \
|
|
GdbSyms/Bin/X64_XCODE5/GdbSyms.dll
|