[Lldb-commits] [PATCH] D39436: Add regex support to file (-f) and module (-s) breakpoint options.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 1 11:16:28 PDT 2017


clayborg added a comment.

The main reason for two strings is for searching efficiency. Most people don't set breakpoints using full paths, they give the basename:

  (lldb) b main.c:12

When setting breakpoints is it very easy to search for matches by basename since this is what users usually type in. Easy to do full paths as well if needed. So we should not try to use a single string as it will adversely affect the speed of file and line breakpoints.


https://reviews.llvm.org/D39436





More information about the lldb-commits mailing list