winedbg: Describe pointer size in CPU backend structure.

This commit is contained in:
Eric Pouech 2010-04-12 21:18:18 +02:00 committed by Alexandre Julliard
parent e9a31f2770
commit 0d7a6f13a8
6 changed files with 7 additions and 2 deletions

View File

@ -146,6 +146,7 @@ static int be_alpha_fetch_float(const struct dbg_lvalue* lvalue, unsigned size,
struct backend_cpu be_alpha =
{
IMAGE_FILE_MACHINE_ALPHA,
8,
be_cpu_linearize,
be_cpu_build_addr,
be_alpha_get_addr,

View File

@ -23,7 +23,8 @@ enum be_xpoint_type {be_xpoint_break, be_xpoint_watch_exec, be_xpoint_watch_read
be_xpoint_watch_write};
struct backend_cpu
{
DWORD machine;
const DWORD machine;
const DWORD pointer_size;
/* ------------------------------------------------------------------------------
* address manipulation
* ------------------------------------------------------------------------------ */

View File

@ -738,6 +738,7 @@ static int be_i386_fetch_float(const struct dbg_lvalue* lvalue, unsigned size,
struct backend_cpu be_i386 =
{
IMAGE_FILE_MACHINE_I386,
4,
be_i386_linearize,
be_i386_build_addr,
be_i386_get_addr,

View File

@ -170,6 +170,7 @@ static int be_ppc_fetch_float(const struct dbg_lvalue* lvalue, unsigned size,
struct backend_cpu be_ppc =
{
IMAGE_FILE_MACHINE_POWERPC,
4,
be_cpu_linearize,
be_cpu_build_addr,
be_ppc_get_addr,

View File

@ -547,6 +547,7 @@ static int be_x86_64_fetch_float(const struct dbg_lvalue* lvalue, unsigned size,
struct backend_cpu be_x86_64 =
{
IMAGE_FILE_MACHINE_AMD64,
8,
be_cpu_linearize,
be_cpu_build_addr,
be_x86_64_get_addr,

View File

@ -38,7 +38,7 @@
#include "objbase.h"
#include "oaidl.h"
#define ADDRSIZE ((unsigned)sizeof(void*))
#define ADDRSIZE (be_cpu->pointer_size)
#define ADDRWIDTH (ADDRSIZE * 2)
/* the debugger uses these exceptions for it's internal use */