Skip to content

Commit fe72e0d

Browse files
committed
Use -.+ instead of -.*
1 parent bc771d2 commit fe72e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Interpreter/CommandInterpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ void CommandInterpreter::LoadCommandDictionary() {
851851
// now "bt 3" is the preferred form, in line with gdb.
852852
if (bt_regex_cmd_up->AddRegexCommand("^([[:digit:]]+)[[:space:]]*$",
853853
"thread backtrace -c %1") &&
854-
bt_regex_cmd_up->AddRegexCommand("^(-.*)$", "thread backtrace %1") &&
854+
bt_regex_cmd_up->AddRegexCommand("^(-.+)$", "thread backtrace %1") &&
855855
bt_regex_cmd_up->AddRegexCommand("^all[[:space:]]*$", "thread backtrace all") &&
856856
bt_regex_cmd_up->AddRegexCommand("^[[:space:]]*$", "thread backtrace")) {
857857
CommandObjectSP command_sp(bt_regex_cmd_up.release());

0 commit comments

Comments
 (0)