Commit 18aaad20 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winedbg: Remove Alpha support.

parent 40cecfc2
......@@ -6,7 +6,6 @@ EXTRALIBS = @LIBPOLL@
EXTRADEFS = -DWINE_NO_UNICODE_MACROS
C_SRCS = \
be_alpha.c \
be_arm.c \
be_i386.c \
be_ppc.c \
......
/*
* Debugger Alpha specific functions
*
* Copyright 2004 Vincent Béron
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "debugger.h"
#if defined(__ALPHA__)
static unsigned be_alpha_get_addr(HANDLE hThread, const CONTEXT* ctx,
enum be_cpu_addr bca, ADDRESS64* addr)
{
dbg_printf("not done\n");
return FALSE;
}
static unsigned be_alpha_get_register_info(int regno, enum be_cpu_addr* kind)
{
dbg_printf("not done\n");
return FALSE;
}
static void be_alpha_single_step(CONTEXT* ctx, unsigned enable)
{
dbg_printf("not done\n");
}
static void be_alpha_print_context(HANDLE hThread, const CONTEXT* ctx, int all_regs)
{
dbg_printf("Context printing for Alpha not done yet\n");
}
static void be_alpha_print_segment_info(HANDLE hThread, const CONTEXT* ctx)
{
}
static struct dbg_internal_var be_alpha_ctx[] =
{
{0, NULL, 0, dbg_itype_none}
};
static unsigned be_alpha_is_step_over_insn(const void* insn)
{
dbg_printf("not done\n");
return FALSE;
}
static unsigned be_alpha_is_function_return(const void* insn)
{
dbg_printf("not done\n");
return FALSE;
}
static unsigned be_alpha_is_break_insn(const void* insn)
{
dbg_printf("not done\n");
return FALSE;
}
static unsigned be_alpha_is_func_call(const void* insn, ADDRESS64* callee)
{
return FALSE;
}
static unsigned be_alpha_is_jump(const void* insn, ADDRESS64* jumpee)
{
return FALSE;
}
static void be_alpha_disasm_one_insn(ADDRESS64* addr, int display)
{
dbg_printf("Disasm NIY\n");
}
static unsigned be_alpha_insert_Xpoint(HANDLE hProcess, const struct be_process_io* pio,
CONTEXT* ctx, enum be_xpoint_type type,
void* addr, unsigned long* val, unsigned size)
{
unsigned long xbp;
SIZE_T sz;
switch (type)
{
case be_xpoint_break:
if (!size) return 0;
if (!pio->read(hProcess, addr, val, 4, &sz) || sz != 4) return 0;
xbp = 0x7d821008; /* 7d 82 10 08 ... in big endian */
if (!pio->write(hProcess, addr, &xbp, 4, &sz) || sz != 4) return 0;
break;
default:
dbg_printf("Unknown/unsupported bp type %c\n", type);
return 0;
}
return 1;
}
static unsigned be_alpha_remove_Xpoint(HANDLE hProcess, const struct be_process_io* pio,
CONTEXT* ctx, enum be_xpoint_type type,
void* addr, unsigned long val, unsigned size)
{
dbg_printf("not done\n");
return FALSE;
}
static unsigned be_alpha_is_watchpoint_set(const CONTEXT* ctx, unsigned idx)
{
dbg_printf("not done\n");
return FALSE;
}
static void be_alpha_clear_watchpoint(CONTEXT* ctx, unsigned idx)
{
dbg_printf("not done\n");
}
static int be_alpha_adjust_pc_for_break(CONTEXT* ctx, BOOL way)
{
dbg_printf("not done\n");
return 0;
}
static int be_alpha_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,
unsigned ext_sign, LONGLONG* ret)
{
dbg_printf("not done\n");
return FALSE;
}
static int be_alpha_fetch_float(const struct dbg_lvalue* lvalue, unsigned size,
long double* ret)
{
dbg_printf("not done\n");
return FALSE;
}
struct backend_cpu be_alpha =
{
IMAGE_FILE_MACHINE_ALPHA,
8,
be_cpu_linearize,
be_cpu_build_addr,
be_alpha_get_addr,
be_alpha_get_register_info,
be_alpha_single_step,
be_alpha_print_context,
be_alpha_print_segment_info,
be_alpha_ctx,
be_alpha_is_step_over_insn,
be_alpha_is_function_return,
be_alpha_is_break_insn,
be_alpha_is_func_call,
be_alpha_is_jump,
be_alpha_disasm_one_insn,
be_alpha_insert_Xpoint,
be_alpha_remove_Xpoint,
be_alpha_is_watchpoint_set,
be_alpha_clear_watchpoint,
be_alpha_adjust_pc_for_break,
be_alpha_fetch_integer,
be_alpha_fetch_float,
};
#endif
......@@ -292,78 +292,6 @@ static size_t cpu_register_map[] = {
/* FIXME: MQ is missing? FIELD_OFFSET(CONTEXT, Mq), */
/* see gdb/nlm/ppc.c */
};
#elif defined(__ALPHA__)
static size_t cpu_register_map[] = {
FIELD_OFFSET(CONTEXT, IntV0),
FIELD_OFFSET(CONTEXT, IntT0),
FIELD_OFFSET(CONTEXT, IntT1),
FIELD_OFFSET(CONTEXT, IntT2),
FIELD_OFFSET(CONTEXT, IntT3),
FIELD_OFFSET(CONTEXT, IntT4),
FIELD_OFFSET(CONTEXT, IntT5),
FIELD_OFFSET(CONTEXT, IntT6),
FIELD_OFFSET(CONTEXT, IntT7),
FIELD_OFFSET(CONTEXT, IntS0),
FIELD_OFFSET(CONTEXT, IntS1),
FIELD_OFFSET(CONTEXT, IntS2),
FIELD_OFFSET(CONTEXT, IntS3),
FIELD_OFFSET(CONTEXT, IntS4),
FIELD_OFFSET(CONTEXT, IntS5),
FIELD_OFFSET(CONTEXT, IntFp),
FIELD_OFFSET(CONTEXT, IntA0),
FIELD_OFFSET(CONTEXT, IntA1),
FIELD_OFFSET(CONTEXT, IntA2),
FIELD_OFFSET(CONTEXT, IntA3),
FIELD_OFFSET(CONTEXT, IntA4),
FIELD_OFFSET(CONTEXT, IntA5),
FIELD_OFFSET(CONTEXT, IntT8),
FIELD_OFFSET(CONTEXT, IntT9),
FIELD_OFFSET(CONTEXT, IntT10),
FIELD_OFFSET(CONTEXT, IntT11),
FIELD_OFFSET(CONTEXT, IntRa),
FIELD_OFFSET(CONTEXT, IntT12),
FIELD_OFFSET(CONTEXT, IntAt),
FIELD_OFFSET(CONTEXT, IntGp),
FIELD_OFFSET(CONTEXT, IntSp),
FIELD_OFFSET(CONTEXT, IntZero),
FIELD_OFFSET(CONTEXT, FltF0),
FIELD_OFFSET(CONTEXT, FltF1),
FIELD_OFFSET(CONTEXT, FltF2),
FIELD_OFFSET(CONTEXT, FltF3),
FIELD_OFFSET(CONTEXT, FltF4),
FIELD_OFFSET(CONTEXT, FltF5),
FIELD_OFFSET(CONTEXT, FltF6),
FIELD_OFFSET(CONTEXT, FltF7),
FIELD_OFFSET(CONTEXT, FltF8),
FIELD_OFFSET(CONTEXT, FltF9),
FIELD_OFFSET(CONTEXT, FltF10),
FIELD_OFFSET(CONTEXT, FltF11),
FIELD_OFFSET(CONTEXT, FltF12),
FIELD_OFFSET(CONTEXT, FltF13),
FIELD_OFFSET(CONTEXT, FltF14),
FIELD_OFFSET(CONTEXT, FltF15),
FIELD_OFFSET(CONTEXT, FltF16),
FIELD_OFFSET(CONTEXT, FltF17),
FIELD_OFFSET(CONTEXT, FltF18),
FIELD_OFFSET(CONTEXT, FltF19),
FIELD_OFFSET(CONTEXT, FltF20),
FIELD_OFFSET(CONTEXT, FltF21),
FIELD_OFFSET(CONTEXT, FltF22),
FIELD_OFFSET(CONTEXT, FltF23),
FIELD_OFFSET(CONTEXT, FltF24),
FIELD_OFFSET(CONTEXT, FltF25),
FIELD_OFFSET(CONTEXT, FltF26),
FIELD_OFFSET(CONTEXT, FltF27),
FIELD_OFFSET(CONTEXT, FltF28),
FIELD_OFFSET(CONTEXT, FltF29),
FIELD_OFFSET(CONTEXT, FltF30),
FIELD_OFFSET(CONTEXT, FltF31),
/* FIXME: Didn't look for the right order yet */
FIELD_OFFSET(CONTEXT, Fir),
FIELD_OFFSET(CONTEXT, Fpcr),
FIELD_OFFSET(CONTEXT, SoftFpcr),
};
#elif defined(__x86_64__)
static size_t cpu_register_map[] = {
FIELD_OFFSET(CONTEXT, Rax),
......
......@@ -614,8 +614,6 @@ struct backend_cpu* be_cpu;
extern struct backend_cpu be_i386;
#elif defined(__powerpc__)
extern struct backend_cpu be_ppc;
#elif defined(__ALPHA__)
extern struct backend_cpu be_alpha;
#elif defined(__x86_64__)
extern struct backend_cpu be_x86_64;
#elif defined(__sparc__)
......@@ -636,8 +634,6 @@ int main(int argc, char** argv)
be_cpu = &be_i386;
#elif defined(__powerpc__)
be_cpu = &be_ppc;
#elif defined(__ALPHA__)
be_cpu = &be_alpha;
#elif defined(__x86_64__)
be_cpu = &be_x86_64;
#elif defined(__sparc__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment