gdiplus/tests: Make sure to use return values (LLVM/Clang).
[wine] / dlls / dbghelp / cpu_sparc.c
1 /*
2  * File cpu_sparc.c
3  *
4  * Copyright (C) 2009-2009, Eric Pouech
5  * Copyright (C) 2010, Austin English
6  *
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.
11  *
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.
16  *
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
20  */
21
22 #include <assert.h>
23
24 #include "ntstatus.h"
25 #define WIN32_NO_STATUS
26 #include "dbghelp_private.h"
27 #include "winternl.h"
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
31
32 static unsigned sparc_get_addr(HANDLE hThread, const CONTEXT* ctx,
33                              enum cpu_addr ca, ADDRESS64* addr)
34 {
35    switch (ca)
36     {
37     case cpu_addr_pc:
38     case cpu_addr_stack:
39     case cpu_addr_frame:
40     default:
41          FIXME("not done for Sparc\n");
42     }
43     return FALSE;
44 }
45
46 static BOOL sparc_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CONTEXT* context)
47 {
48     FIXME("not done for Sparc\n");
49     return FALSE;
50 }
51
52 static unsigned sparc_map_dwarf_register(unsigned regno)
53 {
54     FIXME("not done for Sparc\n");
55     return 0;
56 }
57
58 static void* sparc_fetch_context_reg(CONTEXT* ctx, unsigned regno, unsigned* size)
59 {
60     FIXME("not done for Sparc\n");
61     return NULL;
62 }
63
64 static const char* sparc_fetch_regname(unsigned regno)
65 {
66     FIXME("Unknown register %x\n", regno);
67     return NULL;
68 }
69
70 struct cpu cpu_sparc = {
71     IMAGE_FILE_MACHINE_SPARC,
72     4,
73     sparc_get_addr,
74     sparc_stack_walk,
75     NULL,
76     sparc_map_dwarf_register,
77     sparc_fetch_context_reg,
78     sparc_fetch_regname,
79 };