winedbg: Add bitfield capability to dbg_lvalue.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-12-08 14:44:03 +01:00 committed by Alexandre Julliard
parent ef3fca0c33
commit 10eba8784f
1 changed files with 7 additions and 1 deletions

View File

@ -117,7 +117,9 @@ struct dbg_type
struct dbg_lvalue /* structure to hold left-values... */
{
unsigned in_debuggee : 1; /* 1 = debuggee address space, 0 = debugger address space */
unsigned in_debuggee : 1, /* 1 = debuggee address space, 0 = debugger address space */
bitstart : 8, /* in fact, 7 should be sufficient for underlying 128bit integers */
bitlen;
ADDRESS64 addr;
struct dbg_type type;
};
@ -125,6 +127,8 @@ struct dbg_lvalue /* structure to hold left-values... */
static inline void init_lvalue(struct dbg_lvalue* lv, BOOL in_debuggee, void* addr)
{
lv->in_debuggee = !!in_debuggee;
lv->bitstart = 0;
lv->bitlen = 0;
lv->addr.Mode = AddrModeFlat;
lv->addr.Offset = (DWORD_PTR)addr;
lv->type.module = 0;
@ -134,6 +138,8 @@ static inline void init_lvalue(struct dbg_lvalue* lv, BOOL in_debuggee, void* ad
static inline void init_lvalue_in_debugger(struct dbg_lvalue* lv, enum dbg_internal_types it, void* addr)
{
lv->in_debuggee = 0;
lv->bitstart = 0;
lv->bitlen = 0;
lv->addr.Mode = AddrModeFlat;
lv->addr.Offset = (DWORD_PTR)addr;
lv->type.module = 0;