Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2a8c5da0
Commit
2a8c5da0
authored
Apr 11, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Apr 11, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CLIENT_DebuggerRequest to freeze/unfreeze threads.
parent
371fd75a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
dbg.y
debugger/dbg.y
+20
-3
No files found.
debugger/dbg.y
View file @
2a8c5da0
...
...
@@ -25,6 +25,7 @@
#include "debugger.h"
#include "neexe.h"
#include "process.h"
#include "server.h"
#include "main.h"
#include "expr.h"
#include "user.h"
...
...
@@ -416,6 +417,7 @@ void mode_command(int newmode)
static void DEBUG_Main( int signal )
{
static int loaded_symbols = 0;
static BOOL frozen = FALSE;
static BOOL in_debugger = FALSE;
char SymbolTableFile[256];
int newmode;
...
...
@@ -438,6 +440,12 @@ static void DEBUG_Main( int signal )
{
loaded_symbols++;
if ( !frozen )
{
CLIENT_DebuggerRequest( DEBUGGER_FREEZE_ALL );
frozen = TRUE;
}
/*
* Initialize the type handling stuff.
*/
...
...
@@ -491,6 +499,12 @@ static void DEBUG_Main( int signal )
GlobalUnlock16( GetCurrentTask() );
if ( !frozen )
{
CLIENT_DebuggerRequest( DEBUGGER_FREEZE_ALL );
frozen = TRUE;
}
/* Put the display in a correct state */
USER_Driver->pBeginDebugging();
...
...
@@ -498,8 +512,6 @@ static void DEBUG_Main( int signal )
if (newmode != dbg_mode)
fprintf(stderr,"In %d bit mode.\n", dbg_mode = newmode);
PROCESS_SuspendOtherThreads();
DEBUG_DoDisplay();
if (signal != SIGTRAP) /* This is a real crash, dump some info */
...
...
@@ -561,7 +573,12 @@ static void DEBUG_Main( int signal )
if( dbg_exec_mode == EXEC_CONT )
{
dbg_exec_count = 0;
PROCESS_ResumeOtherThreads();
if ( frozen )
{
CLIENT_DebuggerRequest( DEBUGGER_UNFREEZE_ALL );
frozen = FALSE;
}
}
in_debugger = FALSE;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment