Commit 135f2e1b authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Host references lookup.

Since more and more information in now available through the CPU registers, those require DLV_HOST access to be a bit better handled than it is...
parent 62f16d3c
......@@ -394,7 +394,6 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
break;
case SymTagArrayType:
case SymTagUDT:
assert(lvalue->cookie == DLV_TARGET);
if (!memory_read_value(lvalue, sizeof(val_ptr), &val_ptr)) return;
dbg_printf("%p", val_ptr);
break;
......@@ -402,7 +401,6 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
{
BOOL ok = FALSE;
assert(lvalue->cookie == DLV_TARGET);
/* FIXME: it depends on underlying type for enums
* (not supported yet in dbghelp)
* Assuming 4 as for an int
......
......@@ -106,12 +106,10 @@ long int types_extract_as_integer(const struct dbg_lvalue* lvalue)
break;
case SymTagArrayType:
case SymTagUDT:
assert(lvalue->cookie == DLV_TARGET);
if (!memory_read_value(lvalue, sizeof(rtn), &rtn))
RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL);
break;
case SymTagEnum:
assert(lvalue->cookie == DLV_TARGET);
if (!memory_read_value(lvalue, sizeof(rtn), &rtn))
RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL);
break;
......
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