[Lldb-commits] [lldb] [lldb] [cosmetic] Update help message of `(lldb) b` (PR #149114)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 16 11:06:46 PDT 2025
https://github.com/royitaqi updated https://github.com/llvm/llvm-project/pull/149114
>From eccc519b1c465f3f77297e62dc5d1e7109327508 Mon Sep 17 00:00:00 2001
From: Roy Shi <royshi at meta.com>
Date: Wed, 16 Jul 2025 08:10:05 -0700
Subject: [PATCH 1/2] [lldb] Update help message of `b`
---
lldb/source/Interpreter/CommandInterpreter.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 00c3472444d2e..2d8ab7bf3bbf4 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -616,7 +616,8 @@ void CommandInterpreter::LoadCommandDictionary() {
std::unique_ptr<CommandObjectRegexCommand> break_regex_cmd_up(
new CommandObjectRegexCommand(
*this, "_regexp-break",
- "Set a breakpoint using one of several shorthand formats.",
+ "List all breakpoints, or set a breakpoint using one of several "
+ "shorthand formats.",
"\n"
"_regexp-break <filename>:<linenum>:<colnum>\n"
" main.c:12:21 // Break at line 12 and column "
>From 7418a3926f50169d172d7edf622b76079bf5b8a4 Mon Sep 17 00:00:00 2001
From: Roy Shi <royshi at meta.com>
Date: Wed, 16 Jul 2025 11:06:32 -0700
Subject: [PATCH 2/2] Adjust help message and add example
---
lldb/source/Interpreter/CommandInterpreter.cpp | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 2d8ab7bf3bbf4..da545f18d9b15 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -616,8 +616,8 @@ void CommandInterpreter::LoadCommandDictionary() {
std::unique_ptr<CommandObjectRegexCommand> break_regex_cmd_up(
new CommandObjectRegexCommand(
*this, "_regexp-break",
- "List all breakpoints, or set a breakpoint using one of several "
- "shorthand formats.",
+ "Set a breakpoint using one of several shorthand formats, or list "
+ "the existing breakpoints if no arguments are provided.",
"\n"
"_regexp-break <filename>:<linenum>:<colnum>\n"
" main.c:12:21 // Break at line 12 and column "
@@ -644,7 +644,10 @@ void CommandInterpreter::LoadCommandDictionary() {
" /break here/ // Break on source lines in "
"current file\n"
" // containing text 'break "
- "here'.\n",
+ "here'.\n"
+ "_regexp-break\n"
+ " // List the existing "
+ "breakpoints\n",
lldb::eSymbolCompletion | lldb::eSourceFileCompletion, false));
if (break_regex_cmd_up) {
More information about the lldb-commits
mailing list