[Lldb-commits] [PATCH] D11447: Specify a language to use when parsing expressions.

Greg Clayton clayborg at gmail.com
Thu Jul 23 16:55:59 PDT 2015


clayborg added a comment.

To evaluate an expression use the SB API:

  threads = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint)
  self.assertTrue(len(threads) == 1)
  thread = threads[0]
  frame = thread.GetFrameAtIndex(0)
  
  options = lldb.SBExpressionOptions()
  value = frame.EvaluateExpression ("expression blabla", options)
  self.assertTrue (value.GetError().Fail())




Repository:
  rL LLVM

http://reviews.llvm.org/D11447







More information about the lldb-commits mailing list