mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
29 lines
488 B
Bash
Executable File
29 lines
488 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)
|
|
fi
|
|
|
|
if [ "$GDB" = "" ]; then
|
|
echo "Failed to find GDB"
|
|
exit 1
|
|
fi
|
|
|
|
"$GDB" -ex "target remote localhost:8864" \
|
|
-ex "source Scripts/gdb_uefi.py" \
|
|
-ex "set pagination off" \
|
|
-ex "reload-uefi" \
|
|
-ex "b DebugBreak" \
|
|
GdbSyms/Bin/X64_XCODE5/GdbSyms.dll
|