quakeforge/ruamoko/qwaq/debugger/debugger.h
Bill Currie 1910941426 [qwaq] Handle key events differently when running
Pressing F8 (or n) while the debug target was running would cause it to
stop at that point. While it's certainly desirable to stop a runaway
target on demand, that should be with a different input. Now, commands
that start the target running are ignored while the target is running.
No commands for when the target is running have been implemented yet,
but the provision is there.
2020-07-05 16:53:35 +09:00

49 lines
982 B
Objective-C

#ifndef __qwaq_debugger_debugger_h
#define __qwaq_debugger_debugger_h
#include <types.h>
#include <Object.h>
#include "ruamoko/qwaq/debugger/debug.h"
#include "ruamoko/qwaq/debugger/localsdata.h"
@class ProxyView;
@class Editor;
@class ScrollBar;
@class Window;
@class Array;
@class TableView;
@interface Debugger : Object
{
qdb_target_t target;
qdb_event_t event;
struct {
qdb_state_t state;
int depth;
int until_function;
} trace_cond;
struct {
int onEnter;
int onExit;
} sub_cond;
SEL traceHandler;
int running;
Window *source_window;
ScrollBar *source_scrollbar;
ProxyView *file_proxy;
Array *files;
Editor *current_file;
Window *locals_window;
LocalsData *locals_data;
TableView *locals_view;
}
+(Debugger *)withTarget:(qdb_target_t)target;
-initWithTarget:(qdb_target_t) target;
-(qdb_target_t)target;
-handleDebugEvent;
@end
#endif//__qwaq_debugger_debugger_h