Commit c8006d07 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Use debuggee pointer size when extracting typed value.

parent 16fb9640
...@@ -105,7 +105,8 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue, ...@@ -105,7 +105,8 @@ LONGLONG types_extract_as_longlong(const struct dbg_lvalue* lvalue,
if (issigned) *issigned = s; if (issigned) *issigned = s;
break; break;
case SymTagPointerType: case SymTagPointerType:
if (!dbg_curr_process->be_cpu->fetch_integer(lvalue, sizeof(void*), s = FALSE, &rtn)) if (!types_get_info(&type, TI_GET_LENGTH, &size) ||
!dbg_curr_process->be_cpu->fetch_integer(lvalue, (unsigned)size, s = FALSE, &rtn))
RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL); RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL);
break; break;
case SymTagArrayType: case SymTagArrayType:
......
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
* - type management: * - type management:
* + some bits of internal types are missing (like type casts and the address * + some bits of internal types are missing (like type casts and the address
* operator) * operator)
* + most of the code implies that sizeof(void*) = sizeof(int)
* + all computations should be made on long long * + all computations should be made on long long
* o expr computations are in int:s * o expr computations are in int:s
* o bitfield size is on a 4-bytes * o bitfield size is on a 4-bytes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment