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
32a8b2fa
Commit
32a8b2fa
authored
Dec 05, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Added support for constant values passed by dbghelp.
parent
75033503
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
symbol.c
programs/winedbg/symbol.c
+24
-1
No files found.
programs/winedbg/symbol.c
View file @
32a8b2fa
...
...
@@ -87,6 +87,29 @@ static BOOL fill_sym_lvalue(const SYMBOL_INFO* sym, ULONG base,
lvalue
->
cookie
=
DLV_TARGET
;
lvalue
->
addr
.
Offset
=
(
ULONG
)((
ULONG64
)
*
pval
+
sym
->
Address
);
}
else
if
(
sym
->
Flags
&
SYMFLAG_VALUEPRESENT
)
{
struct
dbg_type
type
;
VARIANT
v
;
DWORD
*
pdw
;
type
.
module
=
sym
->
ModBase
;
type
.
id
=
sym
->
info
;
/* FIXME: this won't work for pointers, as we always for the
* dereference to be in debuggee address space while here
* it's in debugger address space
*/
if
(
!
types_get_info
(
&
type
,
TI_GET_VALUE
,
&
v
)
||
(
v
.
n1
.
n2
.
vt
&
VT_BYREF
))
{
snprintf
(
buffer
,
sz
,
"Couldn't dereference pointer for const value"
);
return
FALSE
;
}
pdw
=
(
DWORD
*
)
lexeme_alloc_size
(
sizeof
(
*
pdw
));
lvalue
->
cookie
=
DLV_HOST
;
lvalue
->
addr
.
Offset
=
(
ULONG
)(
DWORD_PTR
)
pdw
;
*
pdw
=
sym
->
Value
;
}
else
if
(
sym
->
Flags
&
SYMFLAG_LOCAL
)
{
lvalue
->
cookie
=
DLV_TARGET
;
...
...
@@ -125,7 +148,7 @@ static BOOL CALLBACK sgv_cb(SYMBOL_INFO* sym, ULONG size, void* ctx)
{
struct
sgv_data
*
sgv
=
(
struct
sgv_data
*
)
ctx
;
unsigned
insp
;
char
tmp
[
32
];
char
tmp
[
64
];
if
(
sym
->
Flags
&
SYMFLAG_THUNK
)
{
...
...
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