<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Andrey,<div><br></div><div>we have tests covering this functionality that are passing on TOT (and were passing back in lldb-92), but lots of factors can affect it. Can I get access to the case that's failing for you?</div><div><br></div><div>Sean</div><div><br><div><div>On Dec 22, 2011, at 7:08 AM, Andrey Zaytsev wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi! </div><div>lldb-92:</div><div><br></div><div>expression (char *)sel_getName(_cmd)</div><div><br></div><div>Program received signal EXC_BAD_ACCESS, Could not access memory.</div><div>Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000</div><div>[Switching to process 5490 thread 0x2707]</div><div>0x0000000100e9b952 in lldb_private::ClangASTSource::FindExternalVisibleDecls ()</div><div>(gdb) bt</div><div>#0 0x0000000100e9b952 in lldb_private::ClangASTSource::FindExternalVisibleDecls ()</div><div>#1 0x0000000100e9b2fb in lldb_private::ClangASTSource::FindExternalVisibleDecls ()</div><div>#2 0x0000000100ea37d0 in lldb_private::ClangExpressionDeclMap::FindExternalVisibleDecls ()</div><div>#3 0x0000000100e99eca in lldb_private::ClangASTSource::FindExternalVisibleDeclsByName ()</div><div>#4 0x00000001002bcf98 in clang::DeclContext::lookup ()</div><div>#5 0x00000001006888df in LookupDirect ()</div><div>#6 0x0000000100686de1 in clang::Sema::CppLookupName ()</div><div>#7 0x00000001006886a6 in clang::Sema::LookupName ()</div><div>#8 0x000000010059b9d7 in clang::Sema::getTypeName ()</div><div>#9 0x0000000100511674 in clang::Parser::TryAnnotateTypeOrScopeToken ()</div><div>#10 0x00000001004f225f in clang::Parser::ParseCastExpression ()</div><div>#11 0x00000001004f4ebc in clang::Parser::ParseParenExpression ()</div><div>#12 0x00000001004f20ff in clang::Parser::ParseCastExpression ()</div><div>#13 0x00000001004f07a2 in clang::Parser::ParseAssignmentExpression ()</div><div>#14 0x00000001004f0711 in clang::Parser::ParseExpression ()</div><div>#15 0x0000000100514524 in clang::Parser::ParseExprStatement ()</div><div>#16 0x0000000100513f82 in clang::Parser::ParseStatementOrDeclaration ()</div><div>#17 0x00000001005183f0 in clang::Parser::ParseCompoundStatementBody ()</div><div>#18 0x00000001005066fc in clang::Parser::ParseLexedObjCMethodDefs ()</div><div>#19 0x000000010050284f in clang::Parser::ParseObjCAtEndDeclaration ()</div><div>#20 0x0000000100501652 in clang::Parser::ParseObjCAtDirectives ()</div><div>#21 0x000000010050e6d7 in clang::Parser::ParseExternalDeclaration ()</div><div>#22 0x000000010050e369 in clang::Parser::ParseTopLevelDecl ()</div><div>#23 0x00000001004d57fb in clang::ParseAST ()</div><div>#24 0x00000001004d5665 in clang::ParseAST ()</div><div>#25 0x0000000100ea6ed5 in lldb_private::ClangExpressionParser::Parse ()</div><div>#26 0x0000000100eaa535 in lldb_private::ClangUserExpression::Parse ()</div><div>#27 0x0000000100eab213 in lldb_private::ClangUserExpression::EvaluateWithError ()</div><div>#28 0x0000000100eab0bc in lldb_private::ClangUserExpression::Evaluate ()</div><div>#29 0x0000000100f65158 in lldb_private::Target::EvaluateExpression ()</div><div>#30 0x00000001001c7d7e in lldb::SBFrame::EvaluateExpression ()</div><div>#31 0x000000010008724a in jetcidr::DebugSession::EvaluateExpression ()</div><div>#32 0x000000010007d57b in jetcidr::ProtobufHandler::HandleEvaluateExpression ()</div><div>#33 0x000000010007e25b in jetcidr::ProtobufHandler::ProcessMessage ()</div><div>#34 0x000000010007e809 in __block_global_0 ()</div><div>#35 0x00007fff89eb98ba in _dispatch_call_block_and_release ()</div><div>#36 0x00007fff89ebb10a in _dispatch_queue_drain ()</div><div>#37 0x00007fff89ebaf66 in _dispatch_queue_invoke ()</div><div>#38 0x00007fff89eba760 in _dispatch_worker_thread2 ()</div><div>#39 0x00007fff907fb3da in _pthread_wqthread ()</div><div>#40 0x00007fff907fcb85 in start_wqthread ()</div><div><br></div><div><span style="color: rgb(0, 0, 0); font-family: Menlo, monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: -2px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><br></span></div><div style="text-indent: -2px;"><font class="Apple-style-span" face="Menlo, monospace"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap; -webkit-text-size-adjust: none;">expression </span></font><span style="color: rgb(0, 0, 0); font-family: Menlo, monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: -2px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">((long)([group respondsToSelector: @selector(count)])) && ((long)([group respondsToSelector: @selector(objectEnumerator)]))</span></div><div style="text-indent: -2px;"><span style="color: rgb(0, 0, 0); font-family: Menlo, monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: -2px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><br></span></div><div style="text-indent: -2px;"><span style="color: rgb(0, 0, 0); font-family: Menlo, monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: -2px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><pre class="prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); border-image: initial; color: rgb(0, 0, 0); line-height: 16px; overflow-x: auto; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="str" style="color: rgb(0, 136, 0); ">error: Couldn\'t prepare the expression for execution in the target\n</span></pre><div><br></div></span></div><div style="text-indent: -2px;"><span style="color: rgb(0, 0, 0); font-family: Menlo, monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: -2px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><br></span></div><div style="text-indent: -2px;"><span style="color: rgb(0, 0, 0); font-family: Menlo, monospace; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: -2px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "><br></span></div><div><br></div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Andrey Zaytsev</div><div>JetBrains, Inc </div><div><a href="http://jetbrains.com/">http://jetbrains.com</a></div><div>Develop with pleasure!</div></div>
</div>
<br></div>_______________________________________________<br>lldb-dev mailing list<br><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev<br></blockquote></div><br></div></body></html>