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
955ba73e
Commit
955ba73e
authored
Apr 07, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Let the debug channels work again.
While I was at it, simplified the symbol lookup for the debug options.
parent
20d87e76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dbgchnl.c
programs/taskmgr/dbgchnl.c
+6
-6
No files found.
programs/taskmgr/dbgchnl.c
View file @
955ba73e
...
...
@@ -157,22 +157,22 @@ static int change_channel_CB(HANDLE hProcess, void* addr, struct __wine_debug_ch
return
1
;
}
static
void
*
get_symbol
(
HANDLE
hProcess
,
const
char
*
name
,
const
char
*
lib
)
static
void
*
get_symbol
(
HANDLE
hProcess
,
const
char
*
name
)
{
char
buffer
[
sizeof
(
IMAGEHLP_SYMBOL
)
+
256
];
SYMBOL_INFO
*
si
=
(
SYMBOL_INFO
*
)
buffer
;
void
*
ret
=
NULL
;
pSymSetOptions
(
SYMOPT_DEFERRED_LOADS
|
SYMOPT_PUBLICS_ONLY
);
/* FIXME: the TRUE option is due to the face that dbghelp requires it
/* also ask for wine extensions (loading symbols from ELF files) */
pSymSetOptions
(
SYMOPT_DEFERRED_LOADS
|
SYMOPT_PUBLICS_ONLY
|
0x40000000
);
/* FIXME: the TRUE option is due to the fact that dbghelp requires it
* when loading an ELF module
*/
if
(
pSymInitialize
(
hProcess
,
NULL
,
TRUE
))
{
si
->
SizeOfStruct
=
sizeof
(
*
si
);
si
->
MaxNameLen
=
sizeof
(
buffer
)
-
sizeof
(
IMAGEHLP_SYMBOL
);
if
(
pSymLoadModule
(
hProcess
,
NULL
,
lib
,
NULL
,
0
,
0
)
&&
pSymFromName
(
hProcess
,
name
,
si
))
if
(
pSymFromName
(
hProcess
,
name
,
si
))
ret
=
(
void
*
)(
ULONG_PTR
)
si
->
Address
;
pSymCleanup
(
hProcess
);
}
...
...
@@ -193,7 +193,7 @@ static int enum_channel(HANDLE hProcess, EnumChannelCB ce, void* user)
int
ret
=
1
;
void
*
addr
;
if
(
!
(
addr
=
get_symbol
(
hProcess
,
"
debug_options"
,
"libwine.so
"
)))
return
-
1
;
if
(
!
(
addr
=
get_symbol
(
hProcess
,
"
libwine.so.1!debug_options
"
)))
return
-
1
;
while
(
ret
&&
addr
&&
ReadProcessMemory
(
hProcess
,
addr
,
&
channel
,
sizeof
(
channel
),
NULL
))
{
...
...
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