Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
719a7d32
Commit
719a7d32
authored
Aug 25, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Added new pid debug channel to append process id to debug output.
parent
4ca5a356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
debugtools.c
dlls/ntdll/debugtools.c
+3
-0
debug.c
libs/wine/debug.c
+3
-0
No files found.
dlls/ntdll/debugtools.c
View file @
719a7d32
...
...
@@ -39,6 +39,7 @@
#include "ntdll_misc.h"
WINE_DECLARE_DEBUG_CHANNEL
(
tid
);
WINE_DECLARE_DEBUG_CHANNEL
(
pid
);
WINE_DECLARE_DEBUG_CHANNEL
(
timestamp
);
static
struct
__wine_debug_functions
default_funcs
;
...
...
@@ -170,6 +171,8 @@ static int NTDLL_dbg_vlog( enum __wine_debug_class cls, struct __wine_debug_chan
ULONG
ticks
=
NtGetTickCount
();
ret
=
wine_dbg_printf
(
"%3u.%03u:"
,
ticks
/
1000
,
ticks
%
1000
);
}
if
(
TRACE_ON
(
pid
))
ret
+=
wine_dbg_printf
(
"%04x:"
,
GetCurrentProcessId
()
);
if
(
TRACE_ON
(
tid
))
ret
+=
wine_dbg_printf
(
"%04x:"
,
GetCurrentThreadId
()
);
if
(
cls
<
sizeof
(
classes
)
/
sizeof
(
classes
[
0
]))
...
...
libs/wine/debug.c
View file @
719a7d32
...
...
@@ -35,6 +35,7 @@
#if defined(__MINGW32__) || defined(_MSC_VER)
WINE_DECLARE_DEBUG_CHANNEL
(
tid
);
WINE_DECLARE_DEBUG_CHANNEL
(
pid
);
#endif
static
const
char
*
const
debug_classes
[]
=
{
"fixme"
,
"err"
,
"warn"
,
"trace"
};
...
...
@@ -407,6 +408,8 @@ static int default_dbg_vlog( enum __wine_debug_class cls, struct __wine_debug_ch
int
ret
=
0
;
#if defined(__MINGW32__) || defined(_MSC_VER)
if
(
TRACE_ON
(
pid
))
ret
+=
wine_dbg_printf
(
"%04x:"
,
GetCurrentProcessId
()
);
if
(
TRACE_ON
(
tid
))
ret
+=
wine_dbg_printf
(
"%04x:"
,
GetCurrentThreadId
()
);
#endif
...
...
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