@@ -25,7 +25,8 @@ class StackTracePrinter {
25
25
public:
26
26
static StackTracePrinter *GetOrInit ();
27
27
28
- virtual const char *StripFunctionName (const char *function) = 0;
28
+ // Strip interceptor prefixes from function name.
29
+ const char *StripFunctionName (const char *function);
29
30
30
31
virtual void RenderFrame (InternalScopedString *buffer, const char *format,
31
32
int frame_no, uptr address, const AddressInfo *info,
@@ -34,15 +35,13 @@ class StackTracePrinter {
34
35
35
36
virtual bool RenderNeedsSymbolization (const char *format) = 0;
36
37
37
- virtual void RenderSourceLocation (InternalScopedString *buffer,
38
- const char *file, int line, int column,
39
- bool vs_style,
40
- const char *strip_path_prefix) = 0;
38
+ void RenderSourceLocation (InternalScopedString *buffer, const char *file,
39
+ int line, int column, bool vs_style,
40
+ const char *strip_path_prefix);
41
41
42
- virtual void RenderModuleLocation (InternalScopedString *buffer,
43
- const char *module , uptr offset,
44
- ModuleArch arch,
45
- const char *strip_path_prefix) = 0;
42
+ void RenderModuleLocation (InternalScopedString *buffer, const char *module ,
43
+ uptr offset, ModuleArch arch,
44
+ const char *strip_path_prefix);
46
45
virtual void RenderData (InternalScopedString *buffer, const char *format,
47
46
const DataInfo *DI,
48
47
const char *strip_path_prefix = " " ) = 0;
@@ -53,9 +52,6 @@ class StackTracePrinter {
53
52
54
53
class FormattedStackTracePrinter : public StackTracePrinter {
55
54
public:
56
- // Strip interceptor prefixes from function name.
57
- const char *StripFunctionName (const char *function) override ;
58
-
59
55
// Render the contents of "info" structure, which represents the contents of
60
56
// stack frame "frame_no" and appends it to the "buffer". "format" is a
61
57
// string with placeholders, which is copied to the output with
@@ -90,14 +86,6 @@ class FormattedStackTracePrinter : public StackTracePrinter {
90
86
91
87
bool RenderNeedsSymbolization (const char *format) override ;
92
88
93
- void RenderSourceLocation (InternalScopedString *buffer, const char *file,
94
- int line, int column, bool vs_style,
95
- const char *strip_path_prefix) override ;
96
-
97
- void RenderModuleLocation (InternalScopedString *buffer, const char *module ,
98
- uptr offset, ModuleArch arch,
99
- const char *strip_path_prefix) override ;
100
-
101
89
// Same as RenderFrame, but for data section (global variables).
102
90
// Accepts %s, %l from above.
103
91
// Also accepts:
0 commit comments