Skip to content

Commit 97c1a67

Browse files
adamgreenfacchinm
authored andcommitted
Suppress fault display on startup
If GDB is just attaching, we don't want to send the verbose output indicating the cause of a fault since GDB gets very confused by it. This confusion will even result in a 2 second timeout before MRI and GDB re-synchronize.
1 parent 451d793 commit 97c1a67

File tree

1 file changed

+2
-1
lines changed
  • libraries/ThreadMRI/src/core

1 file changed

+2
-1
lines changed

libraries/ThreadMRI/src/core/mri.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ void mriDebugException(void)
200200
return;
201201
}
202202

203-
Platform_DisplayFaultCauseToGdbConsole();
203+
if (!IsFirstException())
204+
Platform_DisplayFaultCauseToGdbConsole();
204205
Send_T_StopResponse();
205206

206207
GdbCommandHandlingLoop();

0 commit comments

Comments
 (0)