Skip to content

Commit

Permalink
Add a stall at the beginning to connect gdb.
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 3, 2024
1 parent 0b9cdf3 commit 0fcc050
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Application/OpenCore/OpenCore.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ UefiMain (

#ifdef JIEF_DEBUG
DEBUG((DEBUG_INFO, "OpenCore : Image base = 0x%llX\n", (UINT64)LoadedImage->ImageBase)); // do not change, it's used by grep to feed the debugger
#ifndef CLOVER_BUILD
gBS->Stall(2500000); // to give time to gdb to connect
#endif
#endif

if (LoadedImage->DeviceHandle == NULL) {
Expand Down

0 comments on commit 0fcc050

Please sign in to comment.