winedbg: Describe pointer size in CPU backend structure.
This commit is contained in:
parent
e9a31f2770
commit
0d7a6f13a8
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
* ------------------------------------------------------------------------------ */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue