fce4895d18
- Add subfolder src/kits/debugger which contains the debugger's core functionality and lower layers. Correspondingly add headers/private/debugger for shared headers to be used by clients such as the Debugger application and eventual remote_debug_server. Adjust various files to account for differences as a result of the split and moves. - Add libdebugger.so to minimal Jamfile.
44 lines
981 B
C++
44 lines
981 B
C++
/*
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
* Copyright 2011, Rene Gollent, rene@gollent.com.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef CPU_STATE_H
|
|
#define CPU_STATE_H
|
|
|
|
#include <OS.h>
|
|
|
|
#include <Referenceable.h>
|
|
#include <Variant.h>
|
|
|
|
#include "Types.h"
|
|
|
|
|
|
class Register;
|
|
|
|
|
|
class CpuState : public BReferenceable {
|
|
public:
|
|
virtual ~CpuState();
|
|
|
|
virtual status_t Clone(CpuState*& _clone) const = 0;
|
|
|
|
virtual status_t UpdateDebugState(void* state, size_t size)
|
|
const = 0;
|
|
|
|
virtual target_addr_t InstructionPointer() const = 0;
|
|
virtual void SetInstructionPointer(
|
|
target_addr_t address) = 0;
|
|
|
|
virtual target_addr_t StackFramePointer() const = 0;
|
|
virtual target_addr_t StackPointer() const = 0;
|
|
virtual bool GetRegisterValue(const Register* reg,
|
|
BVariant& _value) const = 0;
|
|
virtual bool SetRegisterValue(const Register* reg,
|
|
const BVariant& value) = 0;
|
|
|
|
};
|
|
|
|
|
|
#endif // CPU_STATE_H
|