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
9c3059c3
Commit
9c3059c3
authored
Jun 02, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ctrl-c support.
parent
1d86056a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
winedbg.c
debugger/winedbg.c
+16
-0
No files found.
debugger/winedbg.c
View file @
9c3059c3
...
...
@@ -932,6 +932,19 @@ void DEBUG_Run(const char* args)
}
}
static
BOOL
WINAPI
DEBUG_CtrlCHandler
(
DWORD
dwCtrlType
)
{
if
(
dwCtrlType
==
CTRL_C_EVENT
)
{
DEBUG_Printf
(
DBG_CHN_MESG
,
"Ctrl-C: stopping debuggee
\n
"
);
/* FIXME: since we likely have a single process, signal the first process
* in list
*/
return
DEBUG_ProcessList
&&
DebugBreakProcess
(
DEBUG_ProcessList
->
handle
);
}
return
FALSE
;
}
static
void
DEBUG_InitConsole
(
void
)
{
COORD
c
;
...
...
@@ -962,6 +975,9 @@ static void DEBUG_InitConsole(void)
/* put the line editing mode with the nice emacs features (FIXME: could be triggered by a IVAR) */
if
(
GetConsoleMode
(
GetStdHandle
(
STD_INPUT_HANDLE
),
&
mode
))
SetConsoleMode
(
GetStdHandle
(
STD_INPUT_HANDLE
),
mode
|
WINE_ENABLE_LINE_INPUT_EMACS
);
/* set our control-C handler */
SetConsoleCtrlHandler
(
DEBUG_CtrlCHandler
,
TRUE
);
}
int
main
(
int
argc
,
char
**
argv
)
...
...
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