================ @@ -0,0 +1,31 @@ +UNSUPPORTED: system-windows + +# RUN: %clang_host -g %S/Inputs/main.c -o %t +# RUN: %lldb %t -b -o 'settings set use-color true' -o 'image lookup -r -s ma' | FileCheck %s --check-prefix CHECK1 + +# CHECK1: 3 symbols match the regular expression 'ma' in {{.*}} +# CHECK1: Name: {{.+}}31mma{{.+}}0min.c +# CHECK1: Summary: {{.+}}`{{.+}}31mma{{.+}}0min at main.c:2 + +# RUN: %lldb %t -b -o 'settings set use-color true' -o 'image lookup -r -s main.c|foo' | FileCheck %s --check-prefix CHECK2 + +# CHECK2: 2 symbols match the regular expression 'main.c|foo' in {{.*}} +# CHECK2: Name: {{.+}}31mmain.c{{.+}}0m +# CHECK2: Summary: {{.+}}`{{.+}}31mfoo{{.+}}0m at main.c:1 + +# RUN: %lldb %t -b -o 'settings set use-color true' -o 'image lookup -r -s m[abc]' | FileCheck %s --check-prefix CHECK3 + +# CHECK3: 5 symbols match the regular expression 'm[abc]' in {{.*}} +# CHECK3: Name: {{.+}}31mma{{.+}}0min.c +# CHECK3: Summary: {{.+}}`{{.+}}31mma{{.+}}0min at main.c:2 +# CHECK3: Summary: {{.+}}`___lldb_unnamed_sy{{.+}}31mmb{{.+}}0mol36 ---------------- DavidSpickett wrote:
Also these `__lldb_unnamed` tend to come from inlined functions or libc functions we don't have debug info for. Don't add checks for them as they'll vary by platform. So I would say here to maybe drop the __lldb lines and not check for the `5 symbols match` line either. It's not part of what you're testing here. https://github.com/llvm/llvm-project/pull/69422 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits