labath added a comment.

I believe you should be able to use `lldb-test` to write this kind of a test. I 
am thinking of a sequence like:

  yaml2obj %p/Inputs/test.yaml > %t/test.yaml
  yaml2obj %p/Inputs/test.o.yaml > %t/test.o.yaml
  lldb-test breakpoint %t/test.yaml %s | FileCheck %s
  b main
  CHECK-LABEL: b main
  CHECK: Address: {{.*}}main + 13 at test.cpp:2:3
  
  b foo
  CHECK-LABEL: b foo
  CHECK: Address: {{.*}}foo() + 4 at test.cpp:6:1

You can look at existing tests in lit/Breakpoints for details.


https://reviews.llvm.org/D52403



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to