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...
This commit is contained in:
Eric Pouech 2006-11-24 22:18:47 +01:00 committed by Alexandre Julliard
parent 62f16d3cd4
commit 135f2e1b79
2 changed files with 0 additions and 4 deletions

View File

@ -394,7 +394,6 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
break; break;
case SymTagArrayType: case SymTagArrayType:
case SymTagUDT: case SymTagUDT:
assert(lvalue->cookie == DLV_TARGET);
if (!memory_read_value(lvalue, sizeof(val_ptr), &val_ptr)) return; if (!memory_read_value(lvalue, sizeof(val_ptr), &val_ptr)) return;
dbg_printf("%p", val_ptr); dbg_printf("%p", val_ptr);
break; break;
@ -402,7 +401,6 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
{ {
BOOL ok = FALSE; BOOL ok = FALSE;
assert(lvalue->cookie == DLV_TARGET);
/* FIXME: it depends on underlying type for enums /* FIXME: it depends on underlying type for enums
* (not supported yet in dbghelp) * (not supported yet in dbghelp)
* Assuming 4 as for an int * Assuming 4 as for an int

View File

@ -106,12 +106,10 @@ long int types_extract_as_integer(const struct dbg_lvalue* lvalue)
break; break;
case SymTagArrayType: case SymTagArrayType:
case SymTagUDT: case SymTagUDT:
assert(lvalue->cookie == DLV_TARGET);
if (!memory_read_value(lvalue, sizeof(rtn), &rtn)) if (!memory_read_value(lvalue, sizeof(rtn), &rtn))
RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL); RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL);
break; break;
case SymTagEnum: case SymTagEnum:
assert(lvalue->cookie == DLV_TARGET);
if (!memory_read_value(lvalue, sizeof(rtn), &rtn)) if (!memory_read_value(lvalue, sizeof(rtn), &rtn))
RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL); RaiseException(DEBUG_STATUS_INTERNAL_ERROR, 0, 0, NULL);
break; break;