1 /* Copyright (C) 2007 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA. */
21 #include "win32-low.h"
23 /* Fetch register(s) from gdbserver regcache data. */
25 do_fetch_inferior_registers (win32_thread_info *th, int r)
27 char *context_offset = regptr (&th->context, r);
28 supply_register (r, context_offset);
31 #define context_offset(x) ((int)&(((CONTEXT *)NULL)->x))
32 static const int mappings[] = {
62 static const unsigned char arm_wince_le_breakpoint[] =
63 { 0x10, 0x00, 0x00, 0xe6 };
65 struct win32_target_ops the_low_target = {
67 sizeof (mappings) / sizeof (mappings[0]),
68 NULL, /* initial_stuff */
69 NULL, /* store_debug_registers */
70 NULL, /* load_debug_registers */
71 do_fetch_inferior_registers,
72 NULL, /* single_step */
73 arm_wince_le_breakpoint,
74 sizeof (arm_wince_le_breakpoint) / sizeof (arm_wince_le_breakpoint[0]),
75 "arm" /* arch_string */