Add "-o" option to "expression" which prints the object description if available.

llvm-svn: 115115
This commit is contained in:
Jim Ingham
2010-09-30 00:54:27 +00:00
parent 083f368be1
commit 6c68fb4549
12 changed files with 134 additions and 49 deletions

View File

@@ -667,7 +667,8 @@ ClangFunction::ExecuteFunction (
// Thread we ran the function in may have gone away because we ran the target
// Check that it's still there.
exe_ctx.thread = exe_ctx.process->GetThreadList().FindThreadByIndexID(tid, true).get();
exe_ctx.frame = exe_ctx.thread->GetStackFrameAtIndex(0).get();
if (exe_ctx.thread)
exe_ctx.frame = exe_ctx.thread->GetStackFrameAtIndex(0).get();
// Also restore the current process'es selected frame & thread, since this function calling may
// be done behind the user's back.