mirror of
https://github.com/reactos/wine.git
synced 2024-11-23 11:49:50 +00:00
winedbg: Fix some pointer conversion warnings.
This commit is contained in:
parent
0675f5c3d1
commit
d17bc39b1f
@ -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;
|
||||
|
@ -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:
|
||||
|
@ -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");
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user