]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.cpp
Bugfixes
[gldbg.git] / source / gldbg.cpp
index c91e00a79ec8171dd6672fbc8a1b9333209fa7e4..d2ca85e6212b76cda3c1828e683e5462e122f9c0 100644 (file)
@@ -26,6 +26,7 @@ Application::RegApp<GlDbg> GlDbg::reg;
 GlDbg::GlDbg(int argc, char **argv):
        cmd_interp(*this),
        process(vector<string>(argv+1, argv+argc)),
+       buf_offset(0),
        flushing(false),
        got_sigchld(false)
 {
@@ -44,6 +45,8 @@ int GlDbg::main()
        IO::print("Type \"help\" for a list of commands\n");
 
        Application::main();
+
+       return 0;
 }
 
 void GlDbg::launch()
@@ -131,6 +134,7 @@ void GlDbg::read_stream()
                                if(size<0)
                                        break;
                                tracer.decode(data, len);
+                               glstate.decode(data, len);
                                buf_offset += size;
                        }
                        if(buf_offset>8192)