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
0966a6d5
Commit
0966a6d5
authored
Mar 10, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed OUTPUT_DEBUG_STRING pointer handling.
parent
c2ec3687
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
winedbg.c
debugger/winedbg.c
+14
-9
No files found.
debugger/winedbg.c
View file @
0966a6d5
...
...
@@ -116,8 +116,14 @@ static void DEBUG_InitCurrProcess(void)
DEBUG_ProcessDeferredDebug
();
}
static
BOOL
DEBUG_ProcessGetString
(
char
*
buffer
,
int
size
,
HANDLE
hp
,
LPVOID
addr
)
static
BOOL
DEBUG_ProcessGetString
(
char
*
buffer
,
int
size
,
HANDLE
hp
,
LPSTR
addr
)
{
DWORD
sz
;
*
(
WCHAR
*
)
buffer
=
0
;
return
(
addr
&&
ReadProcessMemory
(
hp
,
addr
,
buffer
,
size
,
&
sz
));
}
static
BOOL
DEBUG_ProcessGetStringIndirect
(
char
*
buffer
,
int
size
,
HANDLE
hp
,
LPVOID
addr
)
{
LPVOID
ad
;
DWORD
sz
;
...
...
@@ -344,9 +350,9 @@ static DWORD CALLBACK DEBUG_MainLoop(DWORD pid)
break
;
case
CREATE_PROCESS_DEBUG_EVENT
:
DEBUG_ProcessGetString
(
buffer
,
sizeof
(
buffer
),
de
.
u
.
CreateProcessInfo
.
hProcess
,
de
.
u
.
LoadDll
.
lpImageName
);
DEBUG_ProcessGetString
Indirect
(
buffer
,
sizeof
(
buffer
),
de
.
u
.
CreateProcessInfo
.
hProcess
,
de
.
u
.
LoadDll
.
lpImageName
);
/* FIXME unicode ? de.u.CreateProcessInfo.fUnicode */
TRACE
(
"%08lx:%08lx: create process %s @%p
\n
"
,
...
...
@@ -413,9 +419,9 @@ static DWORD CALLBACK DEBUG_MainLoop(DWORD pid)
ERR
(
"Unknown thread
\n
"
);
break
;
}
DEBUG_ProcessGetString
(
buffer
,
sizeof
(
buffer
),
DEBUG_CurrThread
->
process
->
handle
,
de
.
u
.
LoadDll
.
lpImageName
);
DEBUG_ProcessGetString
Indirect
(
buffer
,
sizeof
(
buffer
),
DEBUG_CurrThread
->
process
->
handle
,
de
.
u
.
LoadDll
.
lpImageName
);
/* FIXME unicode: de.u.LoadDll.fUnicode */
TRACE
(
"%08lx:%08lx: loads DLL %s @%p
\n
"
,
de
.
dwProcessId
,
de
.
dwThreadId
,
...
...
@@ -437,7 +443,6 @@ static DWORD CALLBACK DEBUG_MainLoop(DWORD pid)
DEBUG_CurrThread
->
process
->
handle
,
de
.
u
.
DebugString
.
lpDebugStringData
);
/* fixme unicode de.u.DebugString.fUnicode ? */
TRACE
(
"%08lx:%08lx: output debug string (%s)
\n
"
,
de
.
dwProcessId
,
de
.
dwThreadId
,
...
...
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