1.1.5 Usage of wildcards

You can use wildcards to enhance your pattern matching in DS-5 Debugger expressions.

The following types of wildcard pattern matching can be used:

  • Globs. This is the default.

  • Regular expressions.

You can use the DS-5 Debugger command set wildcard-style to change the default setting.

Globs

Globs are a mechanism for examining the contents of strings, and can be used to search variables for strings matching specific patterns.

Commands that support wildcards can use globs with the following syntax:

*

Specifies zero or more characters

?

Specifies only one character

\

Specifies an escape character to match on strings containing either * or ?

[character]

Specifies a range of characters. You can use !character to match characters that are not listed in the range.

Example 1-2 Examples

This is an example of Globs where a wildcard is expected:

info functions m*            # List all functions starting with m

Regular expressions

Commands that support wildcards can use regular expressions.

The exact regular expression syntax supported is described in a book called Mastering Regular Expressions.

Example 1-3 Examples

This is an example of regular expressions where a wildcard is expected:

info functions m.* # List all functions starting with m
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.