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
d17bc39b
Commit
d17bc39b
authored
May 29, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix some pointer conversion warnings.
parent
0675f5c3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
be_x86_64.c
programs/winedbg/be_x86_64.c
+1
-2
dbg.y
programs/winedbg/dbg.y
+1
-1
memory.c
programs/winedbg/memory.c
+1
-1
types.c
programs/winedbg/types.c
+1
-1
No files found.
programs/winedbg/be_x86_64.c
View file @
d17bc39b
...
...
@@ -561,8 +561,7 @@ static unsigned be_x86_64_remove_Xpoint(HANDLE hProcess, const struct be_process
if
(
size
!=
0
)
return
0
;
if
(
!
pio
->
read
(
hProcess
,
addr
,
&
ch
,
1
,
&
sz
)
||
sz
!=
1
)
return
0
;
if
(
ch
!=
(
unsigned
char
)
0xCC
)
WINE_FIXME
(
"Cannot get back %02x instead of 0xCC at %08lx
\n
"
,
ch
,
(
unsigned
long
)
addr
);
WINE_FIXME
(
"Cannot get back %02x instead of 0xCC at %p
\n
"
,
ch
,
addr
);
ch
=
(
unsigned
char
)
val
;
if
(
!
pio
->
write
(
hProcess
,
addr
,
&
ch
,
1
,
&
sz
)
||
sz
!=
1
)
return
0
;
break
;
...
...
programs/winedbg/dbg.y
View file @
d17bc39b
...
...
@@ -181,7 +181,7 @@ list_arg:
| pathname ':' identifier { symbol_get_line($1, $3, &$$); }
| '*' expr_lvalue { DWORD disp; ADDRESS64 addr; $$.SizeOfStruct = sizeof($$);
types_extract_as_address(&$2, &addr);
SymGetLineFromAddr64(dbg_curr_process->handle, (
unsigned long
)memory_to_linear_addr(& addr), &disp, & $$); }
SymGetLineFromAddr64(dbg_curr_process->handle, (
ULONG_PTR
)memory_to_linear_addr(& addr), &disp, & $$); }
;
run_command:
...
...
programs/winedbg/memory.c
View file @
d17bc39b
...
...
@@ -73,7 +73,7 @@ static void memory_report_invalid_addr(const void* addr)
address
.
Mode
=
AddrModeFlat
;
address
.
Segment
=
0
;
address
.
Offset
=
(
unsigned
long
)
addr
;
address
.
Offset
=
(
ULONG_PTR
)
addr
;
dbg_printf
(
"*** Invalid address "
);
print_address
(
&
address
,
FALSE
);
dbg_printf
(
" ***
\n
"
);
...
...
programs/winedbg/types.c
View file @
d17bc39b
...
...
@@ -67,7 +67,7 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
if
(
type
.
id
==
dbg_itype_segptr
)
{
return
(
long
int
)
memory_to_linear_addr
(
&
lvalue
->
addr
);
return
(
LONG_PTR
)
memory_to_linear_addr
(
&
lvalue
->
addr
);
}
if
(
psize
)
*
psize
=
0
;
...
...
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