class PrettyFrameGlob

Defined at line 19 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.h

A type of glob for matching stack frames. It can match a file or function name.

Public Methods

PrettyFrameGlob Wildcard (size_t min_matches, size_t max_matches)

Matches any stack frame. The min/max_matches allows this to match some number of frames

(inclusive).

Defined at line 15 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

PrettyFrameGlob File (std::string file)

static

Defined at line 23 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

PrettyFrameGlob Func (IdentifierGlob func_glob)

static

Defined at line 30 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

PrettyFrameGlob FuncFile (IdentifierGlob func_glob, std::string file)

static

Defined at line 37 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

PrettyFrameGlob Func (const std::string & func_glob, MatchStyle match_style)

These function variants will parse the function as an IdentifierGlob and assert that it

parses properly. They are designed for tests and built-in globs. In general the fully qualified

matching style should be used, one notable exception is libc start up functions, see

PrettyStackManager for details.

Defined at line 45 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

bool is_wildcard ()

Defined at line 50 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.h

size_t min_matches ()

Defined at line 52 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.h

size_t max_matches ()

Defined at line 53 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.h

PrettyFrameGlob FuncFile (const std::string & func_glob, std::string file, MatchStyle match_style)

static

Defined at line 54 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

bool Matches (const Frame * frame)

Defined at line 63 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

bool Matches (const Location & loc)

Defined at line 69 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.cc

Enumerations

enum MatchStyle
Name Value
kFullyQualified 0
kAllNamespaces 1

This effectively emulates things like "*::Foo" where "Foo" is a function name. The wildcard

logic in IdentifierGlob is specifically for handling template type names and is not well suited

to also serve for matching namespace components. Really all we care about is the last element

of the name in these cases.

Defined at line 36 of file ../../src/developer/debug/zxdb/client/pretty_frame_glob.h