X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglwrap.funcs.t;h=e1395ad1d4c8c3edeea46febdd1eb75b79107625;hb=a832996c884a0e0acc9a38ba4dd258edb75ec7af;hp=bcee77166ec5053ad5238f25b60dd1e4d0f71075;hpb=fab9ed5163a8f4ef5314bc67e48d1690d1126649;p=gldbg.git diff --git a/source/glwrap.funcs.t b/source/glwrap.funcs.t index bcee771..e1395ad 100644 --- a/source/glwrap.funcs.t +++ b/source/glwrap.funcs.t @@ -1,4 +1,3 @@ -# $Id$ !handcode glBegin !handcode glEnd !handcode glGetError @@ -13,6 +12,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 +42,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('}')