mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
d23c9582f1
Support for finding the first address associated with a source line was added to the engine, returning 0 if not found. A temporary breakpoint is set and the progs allowed to run free. However, better handling of temporary breakpoitns is needed as currently a "permanent" breakpoint will be cleared without clearing the temporary breakpoing if the permanent breakpoing is hit while execut-to-cursor is running.
50 lines
1,009 B
Objective-C
50 lines
1,009 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;
|
|
SEL breakHandler;
|
|
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
|