[Lldb-commits] [lldb] [lldb][Breakpoint] Allow whitespace in breakpoint address expression (PR #126053)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 6 09:20:39 PST 2025
================
@@ -262,8 +262,10 @@ OptionArgParser::DoToAddress(const ExecutionContext *exe_ctx, llvm::StringRef s,
// 3: The symbol/reg name if there is an offset
// 4: +/-
// 5: The offset value.
+ // clang-format off
static RegularExpression g_symbol_plus_offset_regex(
- "^(\\$[^ +-]+)|(([^ +-]+)([-\\+])[[:space:]]*(0x[0-9A-Fa-f]+|[0-9]+)[[:space:]]*)$");
+ "^(\\$[^ +-]+)|(([^ +-]+)[[:space:]]*([-\\+])[[:space:]]*(0x[0-9A-Fa-f]+|[0-9]+)[[:space:]]*)$");
----------------
adrian-prantl wrote:
this is using ` ` (in `[^ +-]`)and `:space:` in the same regex, which seems oddly inconsistent?
Apart from Pavel's comment, this seems fine.
https://github.com/llvm/llvm-project/pull/126053
More information about the lldb-commits
mailing list