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
3c85eb18
Commit
3c85eb18
authored
Jun 04, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --debugmsg option to the debugger.
parent
65a42168
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
14 deletions
+27
-14
winedbg.c
debugger/winedbg.c
+25
-11
except.c
win32/except.c
+1
-1
winedefault.reg
winedefault.reg
+1
-2
No files found.
debugger/winedbg.c
View file @
3c85eb18
...
...
@@ -28,11 +28,11 @@
#include "ntddk.h"
#include "thread.h"
#include "wincon.h"
#include "winreg.h"
#include "wingdi.h"
#include "winuser.h"
#include "msvcrt/excpt.h"
#include "winreg.h"
#include "wine/library.h"
DBG_PROCESS
*
DEBUG_CurrProcess
=
NULL
;
DBG_THREAD
*
DEBUG_CurrThread
=
NULL
;
...
...
@@ -991,16 +991,30 @@ int main(int argc, char** argv)
/* Initialize internal vars (types must have been initialized before) */
if
(
!
DEBUG_IntVarsRW
(
TRUE
))
return
-
1
;
if
(
argc
>
1
&&
!
strcmp
(
argv
[
1
],
"--auto"
))
/* parse options */
while
(
argc
>
1
&&
argv
[
1
][
0
]
==
'-'
)
{
argc
--
;
argv
++
;
automatic_mode
=
1
;
/* force some internal variables */
DBG_IVAR
(
UseXTerm
)
=
0
;
DBG_IVAR
(
BreakOnDllLoad
)
=
0
;
DBG_IVAR
(
ConChannelMask
)
=
0
;
DBG_IVAR
(
StdChannelMask
)
=
DBG_CHN_MESG
;
if
(
!
strcmp
(
argv
[
1
],
"--auto"
))
{
automatic_mode
=
1
;
/* force some internal variables */
DBG_IVAR
(
UseXTerm
)
=
0
;
DBG_IVAR
(
BreakOnDllLoad
)
=
0
;
DBG_IVAR
(
ConChannelMask
)
=
0
;
DBG_IVAR
(
StdChannelMask
)
=
DBG_CHN_MESG
;
argc
--
;
argv
++
;
continue
;
}
if
(
!
strcmp
(
argv
[
1
],
"--debugmsg"
)
&&
argv
[
2
])
{
wine_dbg_parse_options
(
argv
[
2
]
);
argc
-=
2
;
argv
+=
2
;
continue
;
}
DEBUG_Printf
(
DBG_CHN_MESG
,
"Usage: winedbg [--debugmsg dbgoptions] [--auto] cmdline
\n
"
);
return
1
;
}
DEBUG_InitConsole
();
...
...
win32/except.c
View file @
3c85eb18
...
...
@@ -253,7 +253,7 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
RegCloseKey
(
hDbgConf
);
}
else
{
/* try a default setup... */
strcpy
(
format
,
"winedbg --debugmsg -all --
--
auto %ld %ld"
);
strcpy
(
format
,
"winedbg --debugmsg -all --auto %ld %ld"
);
}
if
(
!
bAuto
)
...
...
winedefault.reg
View file @
3c85eb18
...
...
@@ -87,7 +87,7 @@
#
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug]
# command line to start a debugger when an exception occurs
"Debugger"="winedbg %ld %ld"
"Debugger"="winedbg
--debugmsg -all
%ld %ld"
# to 0 if a message box has to be presented before running the debugger
"Auto"="1"
...
...
@@ -401,4 +401,3 @@
"Times New Roman Greek,161"="Times New Roman,161"
"Times New Roman TUR,162"="Times New Roman,162"
"Tms Rmn"="Times New Roman"
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