ReactOS  0.4.13-dev-698-g77671f0
cpu_ppc.c File Reference
#include <assert.h>
#include "ntstatus.h"
#include "dbghelp_private.h"
#include "winternl.h"
#include "wine/debug.h"
Include dependency graph for cpu_ppc.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (dbghelp)
 
static BOOL ppc_get_addr (HANDLE hThread, const CONTEXT *ctx, enum cpu_addr ca, ADDRESS64 *addr)
 
static BOOL ppc_stack_walk (struct cpu_stack_walk *csw, LPSTACKFRAME64 frame, CONTEXT *context)
 
static unsigned ppc_map_dwarf_register (unsigned regno, BOOL eh_frame)
 
static voidppc_fetch_context_reg (CONTEXT *ctx, unsigned regno, unsigned *size)
 
static const charppc_fetch_regname (unsigned regno)
 
static BOOL ppc_fetch_minidump_thread (struct dump_context *dc, unsigned index, unsigned flags, const CONTEXT *ctx)
 
static BOOL ppc_fetch_minidump_module (struct dump_context *dc, unsigned index, unsigned flags)
 

Variables

DECLSPEC_HIDDEN struct cpu cpu_ppc
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 24 of file cpu_ppc.c.

Function Documentation

◆ ppc_fetch_context_reg()

static void* ppc_fetch_context_reg ( CONTEXT ctx,
unsigned  regno,
unsigned *  size 
)
static

Definition at line 63 of file cpu_ppc.c.

64 {
65  FIXME("NIY\n");
66  return NULL;
67 }
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416

◆ ppc_fetch_minidump_module()

static BOOL ppc_fetch_minidump_module ( struct dump_context dc,
unsigned  index,
unsigned  flags 
)
static

Definition at line 81 of file cpu_ppc.c.

82 {
83  FIXME("NIY\n");
84  return FALSE;
85 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ ppc_fetch_minidump_thread()

static BOOL ppc_fetch_minidump_thread ( struct dump_context dc,
unsigned  index,
unsigned  flags,
const CONTEXT ctx 
)
static

Definition at line 75 of file cpu_ppc.c.

76 {
77  FIXME("NIY\n");
78  return FALSE;
79 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ ppc_fetch_regname()

static const char* ppc_fetch_regname ( unsigned  regno)
static

Definition at line 69 of file cpu_ppc.c.

70 {
71  FIXME("Unknown register %x\n", regno);
72  return NULL;
73 }
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416

◆ ppc_get_addr()

static BOOL ppc_get_addr ( HANDLE  hThread,
const CONTEXT ctx,
enum cpu_addr  ca,
ADDRESS64 addr 
)
static

Definition at line 31 of file cpu_ppc.c.

33 {
34  switch (ca)
35  {
36 #if defined(__powerpc__)
37  case cpu_addr_pc:
38  addr->Mode = AddrModeFlat;
39  addr->Segment = 0; /* don't need segment */
40  addr->Offset = ctx->Iar;
41  return TRUE;
42 #endif
43  default:
44  case cpu_addr_stack:
45  case cpu_addr_frame:
46  FIXME("not done\n");
47  }
48  return FALSE;
49 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:110
GLenum const GLvoid * addr
Definition: glext.h:9621
static const WCHAR ca[]
Definition: main.c:457

◆ ppc_map_dwarf_register()

static unsigned ppc_map_dwarf_register ( unsigned  regno,
BOOL  eh_frame 
)
static

Definition at line 57 of file cpu_ppc.c.

58 {
59  FIXME("not done\n");
60  return 0;
61 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ ppc_stack_walk()

static BOOL ppc_stack_walk ( struct cpu_stack_walk csw,
LPSTACKFRAME64  frame,
CONTEXT context 
)
static

Definition at line 51 of file cpu_ppc.c.

52 {
53  FIXME("not done\n");
54  return FALSE;
55 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( dbghelp  )

Variable Documentation

◆ cpu_ppc

Initial value:
= {
4,
}
static BOOL ppc_stack_walk(struct cpu_stack_walk *csw, LPSTACKFRAME64 frame, CONTEXT *context)
Definition: cpu_ppc.c:51
static void * ppc_fetch_context_reg(CONTEXT *ctx, unsigned regno, unsigned *size)
Definition: cpu_ppc.c:63
#define IMAGE_FILE_MACHINE_POWERPC
Definition: compat.h:117
static unsigned ppc_map_dwarf_register(unsigned regno, BOOL eh_frame)
Definition: cpu_ppc.c:57
static const char * ppc_fetch_regname(unsigned regno)
Definition: cpu_ppc.c:69
smooth NULL
Definition: ftsmooth.c:416
static BOOL ppc_fetch_minidump_thread(struct dump_context *dc, unsigned index, unsigned flags, const CONTEXT *ctx)
Definition: cpu_ppc.c:75
static BOOL ppc_fetch_minidump_module(struct dump_context *dc, unsigned index, unsigned flags)
Definition: cpu_ppc.c:81
static BOOL ppc_get_addr(HANDLE hThread, const CONTEXT *ctx, enum cpu_addr ca, ADDRESS64 *addr)
Definition: cpu_ppc.c:31

Definition at line 87 of file cpu_ppc.c.