]> git.tdb.fi Git - gldbg.git/blobdiff - source/glwrap.funcs.t
Enable bidirectional communication between gldbg and glwrap.so
[gldbg.git] / source / glwrap.funcs.t
index bcee77166ec5053ad5238f25b60dd1e4d0f71075..f1527ba25dee59998992fe6cc2c888c1ac030377 100644 (file)
@@ -13,6 +13,7 @@ if ret.ctype!='void':
        wl('    %s ret;', ret.ctype)
 wl('   if(!orig)')
 wl('           orig = glsym("%s");', func.name)
+wl('   tracepoint(FUNC_%s, BREAK_CALL);', func.name.upper())
 wl('   pkt = packet_begin(FUNC_%s);', func.name.upper())
 head_sent = False
 for p in params:
@@ -42,7 +43,7 @@ if not head_sent:
        wl('    orig(%s);', ", ".join([p.name for p in params]))
 if not func.name.startswith("glX"):
        wl('    check_error();')
-#wl('  receive_packet();')
+wl('   tracepoint(FUNC_%s, BREAK_RETURN);', func.name.upper())
 if ret.ctype!='void':
        wl('    return ret;')
 wl('}')