• Sergei Golubchik's avatar
    dbug: correct trace for DBUG_RETURN(func()); -- gcc only · 29dd634a
    Sergei Golubchik authored
    when func1 calls func2 from DBUG_RETURN, dbug shows the trace as
    | > func1
    | < func1
    | > func2
    | < func2
    because DBUG_LEAVE happens before func2(). Change that to invoke
    DBUG_LEAVE when the local variable goes out of scope. This uses
    gcc specific __attribute__((cleanup)).
    29dd634a
configure.cmake 32.8 KB