Skip to content

Commit 3c853b6

Browse files
author
Steven Tattersall
committed
Hatari: DebugUI_DoQuitQuery will auto-continue if we are in remote-debug.
This prevents lock-ups waiting for user input.
1 parent a07b7b3 commit 3c853b6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/debug/debugui.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,11 @@ void DebugUI_UnInit(void)
11641164
*/
11651165
bool DebugUI_DoQuitQuery(const char *info)
11661166
{
1167+
/* if we are running in a Remote Debug context, assume the
1168+
user does want to continue. */
1169+
if (remoteDebugcmdCallback)
1170+
return false;
1171+
11671172
char input[8];
11681173
fprintf(stderr, "--- q to exit %s, enter to continue --- ", info);
11691174
if (fgets(input, sizeof(input), stdin) == NULL ||

0 commit comments

Comments
 (0)