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:
Rene Gollent
2016-06-04 13:18:39 -04:00
parent e6687e8f3d
commit fce4895d18
417 changed files with 492 additions and 390 deletions
@@ -0,0 +1,56 @@
/*
* Copyright 2009, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef LOCATABLE_FILE_H
#define LOCATABLE_FILE_H
#include <ObjectList.h>
#include "LocatableEntry.h"
class LocatableFile : public LocatableEntry {
public:
class Listener;
public:
LocatableFile(LocatableEntryOwner* owner,
LocatableDirectory* directory,
const BString& name);
~LocatableFile();
virtual const char* Name() const;
void GetPath(BString& _path) const;
// mutable (requires/does locking)
virtual bool GetLocatedPath(BString& _path) const;
virtual void SetLocatedPath(const BString& path,
bool implicit);
bool AddListener(Listener* listener);
void RemoveListener(Listener* listener);
private:
typedef BObjectList<Listener> ListenerList;
private:
void _NotifyListeners();
private:
BString fName;
BString fLocatedPath;
ListenerList fListeners;
};
class LocatableFile::Listener {
public:
virtual ~Listener();
virtual void LocatableFileChanged(LocatableFile* file) = 0;
// called with lock held
};
#endif // LOCATABLE_FILE_H