X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_parser.hpp;h=7bf0a7dce1058f2fd111ab45b2aa5ba5f1d34ca7;hb=712cc1db47e56a1032dc72d4209ffc9054ec54e4;hp=43c13563a639cb59e535dff580be1e39d22ff28f;hpb=67964385bd2abb065787c52625ed19dbe08f2bf8;p=apitrace diff --git a/common/trace_parser.hpp b/common/trace_parser.hpp index 43c1356..7bf0a7d 100644 --- a/common/trace_parser.hpp +++ b/common/trace_parser.hpp @@ -71,23 +71,26 @@ protected: // Offset in the file of where signature was defined. It is used when // reparsing to determine whether the signature definition is to be // expected next or not. - File::Offset offset; + File::Offset fileOffset; }; typedef SigState FunctionSigState; typedef SigState StructSigState; typedef SigState EnumSigState; typedef SigState BitmaskSigState; + typedef SigState StackFrameState; typedef std::vector FunctionMap; typedef std::vector StructMap; typedef std::vector EnumMap; typedef std::vector BitmaskMap; + typedef std::vector StackFrameMap; FunctionMap functions; StructMap structs; EnumMap enums; BitmaskMap bitmasks; + StackFrameMap frames; FunctionSig *glGetErrorSig; @@ -147,6 +150,9 @@ protected: bool parse_call_details(Call *call, Mode mode); + bool parse_call_backtrace(Call *call, Mode mode); + StackFrame * parse_backtrace_frame(Mode mode); + void adjust_call_flags(Call *call); void parse_arg(Call *call, Mode mode); @@ -195,6 +201,9 @@ protected: Value *parse_opaque(); void scan_opaque(); + Value *parse_repr(); + void scan_repr(); + const char * read_string(void); void skip_string(void);