Debugger: Split into core library and application.
- 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.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef ADDRESS_VALUE_H
|
||||
#define ADDRESS_VALUE_H
|
||||
|
||||
|
||||
#include "IntegerValue.h"
|
||||
|
||||
|
||||
class AddressValue : public IntegerValue {
|
||||
public:
|
||||
AddressValue(const BVariant& value);
|
||||
virtual ~AddressValue();
|
||||
|
||||
virtual bool ToString(BString& _string) const;
|
||||
};
|
||||
|
||||
|
||||
#endif // ADDRESS_VALUE_H
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef BOOL_VALUE_H
|
||||
#define BOOL_VALUE_H
|
||||
|
||||
|
||||
#include "Value.h"
|
||||
|
||||
|
||||
class BoolValue : public Value {
|
||||
public:
|
||||
BoolValue(bool value);
|
||||
virtual ~BoolValue();
|
||||
|
||||
bool GetValue() const
|
||||
{ return fValue; }
|
||||
|
||||
virtual bool ToString(BString& _string) const;
|
||||
virtual bool ToVariant(BVariant& _value) const;
|
||||
|
||||
virtual bool operator==(const Value& other) const;
|
||||
|
||||
private:
|
||||
bool fValue;
|
||||
};
|
||||
|
||||
|
||||
#endif // BOOL_VALUE_H
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef ENUMERATION_VALUE_H
|
||||
#define ENUMERATION_VALUE_H
|
||||
|
||||
|
||||
#include "IntegerValue.h"
|
||||
|
||||
|
||||
class EnumerationType;
|
||||
|
||||
|
||||
class EnumerationValue : public IntegerValue {
|
||||
public:
|
||||
EnumerationValue(EnumerationType* type,
|
||||
const BVariant& value);
|
||||
virtual ~EnumerationValue();
|
||||
|
||||
EnumerationType* GetType() const
|
||||
{ return fType; }
|
||||
|
||||
virtual bool ToString(BString& _string) const;
|
||||
|
||||
private:
|
||||
EnumerationType* fType;
|
||||
};
|
||||
|
||||
|
||||
#endif // ENUMERATION_VALUE_H
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef FLOAT_VALUE_H
|
||||
#define FLOAT_VALUE_H
|
||||
|
||||
|
||||
#include "Value.h"
|
||||
|
||||
|
||||
class FloatValue : public Value {
|
||||
public:
|
||||
FloatValue(const BVariant& value);
|
||||
virtual ~FloatValue();
|
||||
|
||||
BVariant GetValue() const
|
||||
{ return fValue; }
|
||||
|
||||
virtual bool ToString(BString& _string) const;
|
||||
virtual bool ToVariant(BVariant& _value) const;
|
||||
|
||||
virtual bool operator==(const Value& other) const;
|
||||
|
||||
private:
|
||||
BVariant fValue;
|
||||
};
|
||||
|
||||
|
||||
#endif // FLOAT_VALUE_H
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef INTEGER_VALUE_H
|
||||
#define INTEGER_VALUE_H
|
||||
|
||||
|
||||
#include "Value.h"
|
||||
|
||||
|
||||
class IntegerValue : public Value {
|
||||
public:
|
||||
IntegerValue(const BVariant& value);
|
||||
virtual ~IntegerValue();
|
||||
|
||||
bool IsSigned() const;
|
||||
|
||||
int64 ToInt64() const
|
||||
{ return fValue.ToInt64(); }
|
||||
uint64 ToUInt64() const
|
||||
{ return fValue.ToUInt64(); }
|
||||
const BVariant& GetValue() const
|
||||
{ return fValue; }
|
||||
|
||||
virtual bool ToString(BString& _string) const;
|
||||
virtual bool ToVariant(BVariant& _value) const;
|
||||
|
||||
virtual bool operator==(const Value& other) const;
|
||||
|
||||
protected:
|
||||
BVariant fValue;
|
||||
};
|
||||
|
||||
|
||||
#endif // INTEGER_VALUE_H
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010, Rene Gollent, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef STRING_VALUE_H
|
||||
#define STRING_VALUE_H
|
||||
|
||||
|
||||
#include "Value.h"
|
||||
|
||||
|
||||
class StringValue : public Value {
|
||||
public:
|
||||
StringValue(const char* value);
|
||||
virtual ~StringValue();
|
||||
|
||||
BString GetValue() const
|
||||
{ return fValue; }
|
||||
|
||||
virtual bool ToString(BString& _string) const;
|
||||
virtual bool ToVariant(BVariant& _value) const;
|
||||
|
||||
virtual bool operator==(const Value& other) const;
|
||||
|
||||
private:
|
||||
BString fValue;
|
||||
};
|
||||
|
||||
|
||||
#endif // STRING_VALUE_H
|
||||
Reference in New Issue
Block a user