From f57b802a6e759a20d86d9c30a3b2f29c20f0eb10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 11 Jun 2008 01:26:02 +0000 Subject: [PATCH] Debugger stubs for m68k. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25922 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../debug/arch/m68k/arch_debug_support.cpp | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/kits/debug/arch/m68k/arch_debug_support.cpp diff --git a/src/kits/debug/arch/m68k/arch_debug_support.cpp b/src/kits/debug/arch/m68k/arch_debug_support.cpp new file mode 100644 index 0000000000..19aac55168 --- /dev/null +++ b/src/kits/debug/arch/m68k/arch_debug_support.cpp @@ -0,0 +1,34 @@ +/* + * Copyright 2005, Ingo Weinhold, bonefish@users.sf.net. + * Distributed under the terms of the MIT License. + */ + + +#include + +#include "arch_debug_support.h" + + +struct stack_frame { + struct stack_frame *previous; + void *return_address; +}; + + +status_t +arch_debug_get_instruction_pointer(debug_context *context, thread_id thread, + void **ip, void **stackFrameAddress) +{ + // get the CPU state +#warning M68K: TODO + return B_ERROR; +} + + +status_t +arch_debug_get_stack_frame(debug_context *context, void *stackFrameAddress, + debug_stack_frame_info *stackFrameInfo) +{ +#warning M68K: TODO + return B_ERROR; +}