-/* Copyright (C) 2007-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2007-2022 Free Software Foundation, Inc.
This file is part of GDB.
case DR: \
return th->wow64_context.Dr ## DR
- if (wow64_process)
+ if (windows_process.wow64_process)
{
switch (dr)
{
{
switch (z_type)
{
+ case Z_PACKET_HW_BP:
case Z_PACKET_WRITE_WP:
case Z_PACKET_ACCESS_WP:
return 1;
{
switch (type)
{
+ case raw_bkpt_type_hw:
case raw_bkpt_type_write_wp:
case raw_bkpt_type_access_wp:
{
{
switch (type)
{
+ case raw_bkpt_type_hw:
case raw_bkpt_type_write_wp:
case raw_bkpt_type_access_wp:
{
again:
#ifdef __x86_64__
- if (wow64_process)
+ if (windows_process.wow64_process)
th->wow64_context.ContextFlags = (CONTEXT_FULL
| CONTEXT_FLOATING_POINT
| CONTEXT_DEBUG_REGISTERS
BOOL ret;
#ifdef __x86_64__
- if (wow64_process)
- ret = win32_Wow64GetThreadContext (th->h, &th->wow64_context);
+ if (windows_process.wow64_process)
+ ret = Wow64GetThreadContext (th->h, &th->wow64_context);
else
#endif
ret = GetThreadContext (th->h, &th->context);
win32_require_context (th);
#ifdef __x86_64__
- if (wow64_process)
+ if (windows_process.wow64_process)
{
th->wow64_context.Dr0 = dr->dr_mirror[0];
th->wow64_context.Dr1 = dr->dr_mirror[1];
i386_single_step (windows_thread_info *th)
{
#ifdef __x86_64__
- if (wow64_process)
+ if (windows_process.wow64_process)
th->wow64_context.EFlags |= FLAG_TRACE_BIT;
else
#endif
{
const int *mappings;
#ifdef __x86_64__
- if (!wow64_process)
+ if (!windows_process.wow64_process)
mappings = amd64_mappings;
else
#endif
char *context_offset;
#ifdef __x86_64__
- if (wow64_process)
+ if (windows_process.wow64_process)
context_offset = (char *) &th->wow64_context + mappings[r];
else
#endif
{
const int *mappings;
#ifdef __x86_64__
- if (!wow64_process)
+ if (!windows_process.wow64_process)
mappings = amd64_mappings;
else
#endif
char *context_offset;
#ifdef __x86_64__
- if (wow64_process)
+ if (windows_process.wow64_process)
context_offset = (char *) &th->wow64_context + mappings[r];
else
#endif
{
int num_regs;
#ifdef __x86_64__
- if (!wow64_process)
+ if (!windows_process.wow64_process)
num_regs = sizeof (amd64_mappings) / sizeof (amd64_mappings[0]);
else
#endif