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,82 @@
|
||||
/*
|
||||
* Copyright 2014, Rene Gollent, [email protected].
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef EXPRESSION_VALUES_H
|
||||
#define EXPRESSION_VALUES_H
|
||||
|
||||
|
||||
#include <String.h>
|
||||
|
||||
#include <Referenceable.h>
|
||||
#include <util/OpenHashTable.h>
|
||||
#include <Variant.h>
|
||||
|
||||
|
||||
class FunctionID;
|
||||
class Thread;
|
||||
|
||||
|
||||
class ExpressionValues : public BReferenceable {
|
||||
public:
|
||||
ExpressionValues();
|
||||
ExpressionValues(const ExpressionValues& other);
|
||||
// throws std::bad_alloc
|
||||
virtual ~ExpressionValues();
|
||||
|
||||
status_t Init();
|
||||
|
||||
bool GetValue(FunctionID* function,
|
||||
Thread* thread,
|
||||
const BString* expression,
|
||||
BVariant& _value) const;
|
||||
inline bool GetValue(FunctionID* function,
|
||||
Thread* thread,
|
||||
const BString& expression,
|
||||
BVariant& _value) const;
|
||||
bool HasValue(FunctionID* function,
|
||||
Thread* thread,
|
||||
const BString* expression) const;
|
||||
inline bool HasValue(FunctionID* function,
|
||||
Thread* thread,
|
||||
const BString& expression) const;
|
||||
status_t SetValue(FunctionID* function,
|
||||
Thread* thread,
|
||||
const BString& expression,
|
||||
const BVariant& value);
|
||||
|
||||
private:
|
||||
struct Key;
|
||||
struct ValueEntry;
|
||||
struct ValueEntryHashDefinition;
|
||||
|
||||
typedef BOpenHashTable<ValueEntryHashDefinition> ValueTable;
|
||||
|
||||
private:
|
||||
ExpressionValues& operator=(const ExpressionValues& other);
|
||||
|
||||
void _Cleanup();
|
||||
|
||||
private:
|
||||
ValueTable* fValues;
|
||||
};
|
||||
|
||||
|
||||
bool
|
||||
ExpressionValues::GetValue(FunctionID* function, Thread* thread,
|
||||
const BString& expression, BVariant& _value) const
|
||||
{
|
||||
return GetValue(function, thread, &expression, _value);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
ExpressionValues::HasValue(FunctionID* function, Thread* thread,
|
||||
const BString& expression) const
|
||||
{
|
||||
return HasValue(function, thread, &expression);
|
||||
}
|
||||
|
||||
|
||||
#endif // EXPRESSION_VALUES_H
|
||||
Reference in New Issue
Block a user