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
44410651
Commit
44410651
authored
Jan 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix pointer cast warnings on 64-bit.
parent
32484769
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
expr.c
programs/winedbg/expr.c
+8
-8
stack.c
programs/winedbg/stack.c
+1
-1
tgt_active.c
programs/winedbg/tgt_active.c
+1
-1
types.c
programs/winedbg/types.c
+2
-2
No files found.
programs/winedbg/expr.c
View file @
44410651
...
...
@@ -346,19 +346,19 @@ struct dbg_lvalue expr_eval(struct expr* exp)
rtn
.
cookie
=
DLV_HOST
;
rtn
.
type
.
id
=
dbg_itype_astring
;
rtn
.
type
.
module
=
0
;
rtn
.
addr
.
Offset
=
(
unsigned
int
)
&
exp
->
un
.
string
.
str
;
rtn
.
addr
.
Offset
=
(
ULONG_PTR
)
&
exp
->
un
.
string
.
str
;
break
;
case
EXPR_TYPE_U_CONST
:
rtn
.
cookie
=
DLV_HOST
;
rtn
.
type
.
id
=
dbg_itype_unsigned_int
;
rtn
.
type
.
module
=
0
;
rtn
.
addr
.
Offset
=
(
unsigned
int
)
&
exp
->
un
.
u_const
.
value
;
rtn
.
addr
.
Offset
=
(
ULONG_PTR
)
&
exp
->
un
.
u_const
.
value
;
break
;
case
EXPR_TYPE_S_CONST
:
rtn
.
cookie
=
DLV_HOST
;
rtn
.
type
.
id
=
dbg_itype_signed_int
;
rtn
.
type
.
module
=
0
;
rtn
.
addr
.
Offset
=
(
unsigned
int
)
&
exp
->
un
.
s_const
.
value
;
rtn
.
addr
.
Offset
=
(
ULONG_PTR
)
&
exp
->
un
.
s_const
.
value
;
break
;
case
EXPR_TYPE_SYMBOL
:
switch
(
symbol_get_lvalue
(
exp
->
un
.
symbol
.
name
,
-
1
,
&
rtn
,
FALSE
))
...
...
@@ -463,7 +463,7 @@ struct dbg_lvalue expr_eval(struct expr* exp)
rtn
.
cookie
=
DLV_HOST
;
/* get return type from function signature tupe */
types_get_info
(
&
rtn
.
type
,
TI_GET_TYPE
,
&
rtn
.
type
.
id
);
rtn
.
addr
.
Offset
=
(
unsigned
int
)
&
exp
->
un
.
call
.
result
;
rtn
.
addr
.
Offset
=
(
ULONG_PTR
)
&
exp
->
un
.
call
.
result
;
break
;
case
EXPR_TYPE_INTVAR
:
rtn
.
cookie
=
DLV_HOST
;
...
...
@@ -471,7 +471,7 @@ struct dbg_lvalue expr_eval(struct expr* exp)
RaiseException
(
DEBUG_STATUS_NO_SYMBOL
,
0
,
0
,
NULL
);
rtn
.
type
.
id
=
div
->
typeid
;
rtn
.
type
.
module
=
0
;
rtn
.
addr
.
Offset
=
(
unsigned
int
)
div
->
pval
;
rtn
.
addr
.
Offset
=
(
ULONG_PTR
)
div
->
pval
;
break
;
case
EXPR_TYPE_BINOP
:
rtn
.
cookie
=
DLV_HOST
;
...
...
@@ -481,7 +481,7 @@ struct dbg_lvalue expr_eval(struct expr* exp)
RaiseException
(
DEBUG_STATUS_BAD_TYPE
,
0
,
0
,
NULL
);
rtn
.
type
.
id
=
dbg_itype_signed_int
;
rtn
.
type
.
module
=
0
;
rtn
.
addr
.
Offset
=
(
unsigned
int
)
&
exp
->
un
.
binop
.
result
;
rtn
.
addr
.
Offset
=
(
ULONG_PTR
)
&
exp
->
un
.
binop
.
result
;
type1
=
exp1
.
type
;
type2
=
exp2
.
type
;
switch
(
exp
->
un
.
binop
.
binop_type
)
...
...
@@ -611,7 +611,7 @@ struct dbg_lvalue expr_eval(struct expr* exp)
rtn
.
cookie
=
DLV_HOST
;
exp1
=
expr_eval
(
exp
->
un
.
unop
.
exp1
);
if
(
exp1
.
type
.
id
==
dbg_itype_none
)
RaiseException
(
DEBUG_STATUS_BAD_TYPE
,
0
,
0
,
NULL
);
rtn
.
addr
.
Offset
=
(
unsigned
int
)
&
exp
->
un
.
unop
.
result
;
rtn
.
addr
.
Offset
=
(
ULONG_PTR
)
&
exp
->
un
.
unop
.
result
;
rtn
.
type
.
id
=
dbg_itype_signed_int
;
rtn
.
type
.
module
=
0
;
switch
(
exp
->
un
.
unop
.
unop_type
)
...
...
@@ -638,7 +638,7 @@ struct dbg_lvalue expr_eval(struct expr* exp)
/* only do it on linear addresses */
if
(
exp1
.
addr
.
Mode
!=
AddrModeFlat
)
RaiseException
(
DEBUG_STATUS_CANT_DEREF
,
0
,
0
,
NULL
);
exp
->
un
.
unop
.
result
=
(
unsigned
int
)
memory_to_linear_addr
(
&
exp1
.
addr
);
exp
->
un
.
unop
.
result
=
(
ULONG_PTR
)
memory_to_linear_addr
(
&
exp1
.
addr
);
rtn
.
type
=
types_find_pointer
(
&
exp1
.
type
);
if
(
rtn
.
type
.
id
==
dbg_itype_none
)
RaiseException
(
DEBUG_STATUS_CANT_DEREF
,
0
,
0
,
NULL
);
...
...
programs/winedbg/stack.c
View file @
44410651
...
...
@@ -182,7 +182,7 @@ unsigned stack_fetch_frames(void)
/* don't confuse StackWalk by passing in inconsistent addresses */
if
((
sf
.
AddrPC
.
Mode
==
AddrModeFlat
)
&&
(
sf
.
AddrFrame
.
Mode
!=
AddrModeFlat
))
{
sf
.
AddrFrame
.
Offset
=
(
DWORD
)
memory_to_linear_addr
(
&
sf
.
AddrFrame
);
sf
.
AddrFrame
.
Offset
=
(
ULONG_PTR
)
memory_to_linear_addr
(
&
sf
.
AddrFrame
);
sf
.
AddrFrame
.
Mode
=
AddrModeFlat
;
}
...
...
programs/winedbg/tgt_active.c
View file @
44410651
...
...
@@ -53,7 +53,7 @@ static void dbg_init_current_thread(void* start)
break_set_xpoints
(
FALSE
);
addr
.
Mode
=
AddrModeFlat
;
addr
.
Offset
=
(
DWORD
)
start
;
addr
.
Offset
=
(
DWORD
_PTR
)
start
;
break_add_break
(
&
addr
,
TRUE
,
TRUE
);
break_set_xpoints
(
TRUE
);
}
...
...
programs/winedbg/types.c
View file @
44410651
...
...
@@ -114,7 +114,7 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue, unsigned* ps
RaiseException
(
DEBUG_STATUS_INTERNAL_ERROR
,
0
,
0
,
NULL
);
break
;
case
SymTagFunctionType
:
rtn
=
(
unsigned
)
memory_to_linear_addr
(
&
lvalue
->
addr
);
rtn
=
(
ULONG_PTR
)
memory_to_linear_addr
(
&
lvalue
->
addr
);
break
;
default:
WINE_FIXME
(
"Unsupported tag %u
\n
"
,
tag
);
...
...
@@ -230,7 +230,7 @@ static BOOL types_get_udt_element_lvalue(struct dbg_lvalue* lvalue,
*
tmpbuf
&=
~
mask
;
lvalue
->
cookie
=
DLV_HOST
;
lvalue
->
addr
.
Offset
=
(
DWORD
)
tmpbuf
;
lvalue
->
addr
.
Offset
=
(
ULONG_PTR
)
tmpbuf
;
/*
* OK, now we have the correct part of the number.
...
...
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