2020-03-29 17:34:08 +00:00
|
|
|
#ifndef __qwaq_debugger_debugger_h
|
|
|
|
#define __qwaq_debugger_debugger_h
|
2020-03-24 16:07:58 +00:00
|
|
|
|
2020-03-30 03:43:02 +00:00
|
|
|
#include <types.h>
|
2020-03-24 16:07:58 +00:00
|
|
|
#include <Object.h>
|
|
|
|
|
2020-06-21 14:15:17 +00:00
|
|
|
#include "ruamoko/qwaq/debugger/debug.h"
|
|
|
|
#include "ruamoko/qwaq/debugger/localsdata.h"
|
2020-03-24 16:07:58 +00:00
|
|
|
|
|
|
|
@class ProxyView;
|
|
|
|
@class Editor;
|
2021-06-10 03:13:55 +00:00
|
|
|
@class EditStatus;
|
2020-03-30 13:02:58 +00:00
|
|
|
@class ScrollBar;
|
2020-03-24 16:07:58 +00:00
|
|
|
@class Window;
|
|
|
|
@class Array;
|
2020-03-31 11:48:38 +00:00
|
|
|
@class TableView;
|
2020-03-24 16:07:58 +00:00
|
|
|
|
|
|
|
@interface Debugger : Object
|
|
|
|
{
|
2020-03-30 03:43:02 +00:00
|
|
|
qdb_target_t target;
|
2020-04-02 04:07:50 +00:00
|
|
|
qdb_event_t event;
|
2020-04-02 08:44:53 +00:00
|
|
|
struct {
|
|
|
|
qdb_state_t state;
|
|
|
|
int depth;
|
|
|
|
int until_function;
|
|
|
|
} trace_cond;
|
|
|
|
struct {
|
|
|
|
int onEnter;
|
|
|
|
int onExit;
|
|
|
|
} sub_cond;
|
|
|
|
SEL traceHandler;
|
2021-06-08 07:54:04 +00:00
|
|
|
SEL breakHandler;
|
2020-07-03 12:41:51 +00:00
|
|
|
int running;
|
2020-03-26 00:04:31 +00:00
|
|
|
|
2020-03-24 16:07:58 +00:00
|
|
|
Window *source_window;
|
2020-03-31 11:48:38 +00:00
|
|
|
ScrollBar *source_scrollbar;
|
2021-06-10 03:13:55 +00:00
|
|
|
EditStatus *source_status;
|
2020-03-24 16:07:58 +00:00
|
|
|
ProxyView *file_proxy;
|
|
|
|
Array *files;
|
|
|
|
Editor *current_file;
|
2020-03-26 00:04:31 +00:00
|
|
|
|
|
|
|
Window *locals_window;
|
2020-03-31 11:48:38 +00:00
|
|
|
LocalsData *locals_data;
|
|
|
|
TableView *locals_view;
|
2020-03-24 16:07:58 +00:00
|
|
|
}
|
2020-03-30 07:30:58 +00:00
|
|
|
+(Debugger *)withTarget:(qdb_target_t)target;
|
2020-03-24 16:07:58 +00:00
|
|
|
-initWithTarget:(qdb_target_t) target;
|
2020-03-30 07:30:58 +00:00
|
|
|
-(qdb_target_t)target;
|
2020-03-24 16:07:58 +00:00
|
|
|
-handleDebugEvent;
|
|
|
|
@end
|
|
|
|
|
2020-03-29 17:34:08 +00:00
|
|
|
#endif//__qwaq_debugger_debugger_h
|