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
ac3ee768
Commit
ac3ee768
authored
Dec 07, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Make pid and tid internal variables DWORDs.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
396880ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
debugger.h
programs/winedbg/debugger.h
+2
-2
stack.c
programs/winedbg/stack.c
+1
-1
tgt_active.c
programs/winedbg/tgt_active.c
+3
-3
winedbg.c
programs/winedbg/winedbg.c
+3
-3
No files found.
programs/winedbg/debugger.h
View file @
ac3ee768
...
...
@@ -245,9 +245,9 @@ struct be_process_io
};
extern
struct
dbg_process
*
dbg_curr_process
;
extern
DWORD
_PTR
dbg_curr_pid
;
extern
DWORD
dbg_curr_pid
;
extern
struct
dbg_thread
*
dbg_curr_thread
;
extern
DWORD
_PTR
dbg_curr_tid
;
extern
DWORD
dbg_curr_tid
;
extern
dbg_ctx_t
dbg_context
;
extern
BOOL
dbg_interactiveP
;
extern
HANDLE
dbg_houtput
;
...
...
programs/winedbg/stack.c
View file @
ac3ee768
...
...
@@ -409,7 +409,7 @@ static void backtrace_all(void)
dbg_active_wait_for_first_exception
();
}
dbg_printf
(
"
\n
Backtracing for thread %04x in process %04
I
x (%s):
\n
"
,
dbg_printf
(
"
\n
Backtracing for thread %04x in process %04x (%s):
\n
"
,
entry
.
th32ThreadID
,
dbg_curr_pid
,
dbg_W2A
(
dbg_curr_process
->
imageName
,
-
1
));
backtrace_tid
(
dbg_curr_process
,
entry
.
th32ThreadID
);
...
...
programs/winedbg/tgt_active.c
View file @
ac3ee768
...
...
@@ -370,7 +370,7 @@ static unsigned dbg_handle_debug_event(DEBUG_EVENT* de)
size
=
ARRAY_SIZE
(
u
.
buffer
);
if
(
!
QueryFullProcessImageNameW
(
dbg_curr_process
->
handle
,
0
,
u
.
buffer
,
&
size
))
{
swprintf
(
u
.
buffer
,
ARRAY_SIZE
(
u
.
buffer
),
L"Process_%08x"
,
dbg_curr_pid
);
swprintf
(
u
.
buffer
,
ARRAY_SIZE
(
u
.
buffer
),
L"Process_%08x"
,
dbg_curr_pid
);
}
WINE_TRACE
(
"%04x:%04x: create process '%s'/%p @%p (%u<%u>)
\n
"
,
...
...
@@ -537,12 +537,12 @@ static void dbg_resume_debuggee(DWORD cont)
if
(
dbg_curr_thread
)
{
if
(
!
dbg_curr_process
->
be_cpu
->
set_context
(
dbg_curr_thread
->
handle
,
&
dbg_context
))
dbg_printf
(
"Cannot set ctx on %04
I
x
\n
"
,
dbg_curr_tid
);
dbg_printf
(
"Cannot set ctx on %04x
\n
"
,
dbg_curr_tid
);
}
}
dbg_interactiveP
=
FALSE
;
if
(
!
ContinueDebugEvent
(
dbg_curr_pid
,
dbg_curr_tid
,
cont
))
dbg_printf
(
"Cannot continue on %04
I
x (%08x)
\n
"
,
dbg_curr_tid
,
cont
);
dbg_printf
(
"Cannot continue on %04x (%08x)
\n
"
,
dbg_curr_tid
,
cont
);
}
static
void
wait_exception
(
void
)
...
...
programs/winedbg/winedbg.c
View file @
ac3ee768
...
...
@@ -77,8 +77,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(winedbg);
struct
dbg_process
*
dbg_curr_process
=
NULL
;
struct
dbg_thread
*
dbg_curr_thread
=
NULL
;
DWORD
_PTR
dbg_curr_tid
=
0
;
DWORD
_PTR
dbg_curr_pid
=
0
;
DWORD
dbg_curr_tid
=
0
;
DWORD
dbg_curr_pid
=
0
;
dbg_ctx_t
dbg_context
;
BOOL
dbg_interactiveP
=
FALSE
;
HANDLE
dbg_houtput
=
0
;
...
...
@@ -569,7 +569,7 @@ void dbg_start_interactive(const char* filename, HANDLE hFile)
if
(
dbg_curr_process
)
{
dbg_printf
(
"WineDbg starting on pid %04
I
x
\n
"
,
dbg_curr_pid
);
dbg_printf
(
"WineDbg starting on pid %04x
\n
"
,
dbg_curr_pid
);
if
(
dbg_curr_process
->
active_debuggee
)
dbg_active_wait_for_first_exception
();
}
...
...
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