#include <msp/core/application.h>
#include <msp/fs/path.h>
#include "commandinterpreter.h"
+#include "glstate.h"
#include "process.h"
+#include "profiler.h"
#include "tracer.h"
class GlDbg: public Msp::Application
unsigned buf_offset;
bool flushing;
Tracer tracer;
+ GlState glstate;
+ Profiler profiler;
bool got_sigchld;
static RegApp<GlDbg> reg;
GlDbg(int, char **);
int main();
Tracer &get_tracer() { return tracer; }
+ GlState &get_glstate() { return glstate; }
+ Profiler &get_profiler() { return profiler; }
Process &get_process() { return process; }
void launch();
- void quit();
+ void quit(bool);
private:
void tick();
void check_child();