widl: Don't force removal of progids since "CLSID" is also a progid.
[wine.git] / dlls / dbghelp / cpu_arm.c
blobfd0b781f3a3ed9452ebe00d757adecfe821e0af9
1 /*
2 * File cpu_arm.c
4 * Copyright (C) 2009-2009, Eric Pouech
5 * Copyright (C) 2010, André Hentschel
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include <assert.h>
24 #include "ntstatus.h"
25 #define WIN32_NO_STATUS
26 #include "dbghelp_private.h"
27 #include "winternl.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
32 static unsigned arm_get_addr(HANDLE hThread, const CONTEXT* ctx,
33 enum cpu_addr ca, ADDRESS64* addr)
35 addr->Mode = AddrModeFlat;
36 addr->Segment = 0; /* don't need segment */
37 switch (ca)
39 #ifdef __arm__
40 case cpu_addr_pc: addr->Offset = ctx->Pc; return TRUE;
41 case cpu_addr_stack: addr->Offset = ctx->Sp; return TRUE;
42 case cpu_addr_frame: addr->Offset = ctx->Fp; return TRUE;
43 #endif
44 default: addr->Mode = -1;
45 return FALSE;
49 static BOOL arm_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CONTEXT* context)
51 FIXME("not done for ARM\n");
52 return FALSE;
55 static unsigned arm_map_dwarf_register(unsigned regno)
57 FIXME("not done for ARM\n");
58 return 0;
61 static void* arm_fetch_context_reg(CONTEXT* ctx, unsigned regno, unsigned* size)
63 FIXME("not done for ARM\n");
64 return NULL;
67 static const char* arm_fetch_regname(unsigned regno)
69 FIXME("Unknown register %x\n", regno);
70 return NULL;
73 struct cpu cpu_arm = {
74 IMAGE_FILE_MACHINE_ARM,
76 arm_get_addr,
77 arm_stack_walk,
78 NULL,
79 arm_map_dwarf_register,
80 arm_fetch_context_reg,
81 arm_fetch_regname,