<div dir="ltr"><div>> We want to avoid doing this it at all possible, so please do check for any clang changes first.</div><div><br></div><div>I went back three months ago (r179296) and it didn't crash. Doing the bsod narrowed it down to 180048. (Full clean build with 180047 doesn't crash).</div>
<div><br></div><div>However this change doesn't have anything to do with clang. I'm guessing the symbols just weren't found before this change?</div><div><br></div><div>If I add this change to 179296, that crashes as well.</div>
<div><br></div><div>How far back should I be looking for this clang change, if that's it?</div><div>Thanks Greg.</div><div> -Mike</div><div><br></div><div>mikesart@mikesart-rad:~/data/src/llvm.svn/llvm/tools/lldb$ svn log -r 180048<br>
</div><div><div>r180048 | mkopec | 2013-04-22 14:13:22 -0700 (Mon, 22 Apr 2013) | 4 lines<br></div><div>When parsing dwarf, add C functions to the fullname index.<br></div><div>This fixes function type resolution for C functions when requesting full function names.<br>
</div></div><div><br></div><div>mikesart@mikesart-rad:~/data/src/llvm.svn/llvm/tools/lldb$ svn diff -r 180047:180048<br></div><div><div><div>Index: source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp<br></div><div>===================================================================</div>
<div>--- source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp (revision 180047)</div><div>+++ source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp (revision 180048)</div><div>@@ -817,6 +817,9 @@</div><div> func_methods.Insert (ConstString(name), die.GetOffset());</div>
<div> else</div><div> func_basenames.Insert (ConstString(name), die.GetOffset());</div><div>+</div><div>+ if (!is_method && !mangled_cstr && !objc_method.IsValid(true))</div>
<div>+ func_fullnames.Insert (ConstString(name), die.GetOffset());</div><div> }</div><div> if (mangled_cstr)</div><div> {</div><div>@@ -854,6 +857,8 @@</div>
<div> func_fullnames.Insert (mangled.GetDemangledName(), die.GetOffset());</div><div> }</div><div> }</div><div>+ else</div><div>+ func_fullnames.Insert (ConstString(name), die.GetOffset());</div>
<div> }</div><div> break;</div></div><div><br></div><div>On Thu, Jul 11, 2013 at 10:08 AM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">With C++ classes we always will create the class, but we don't start the clang RecordDecl definition of the class until someone somewhere asks for information about the class that requires it to complete. The SymbolFileDWARF is a ExternalASTSource that knows how to complete its classes so when someone asks the class to complete, it should call into the SymbolFileDWARF plug-in (from the clang AST code) through one of:<br>
<br>
SymbolFileDWARF::CompleteTagDecl (void *baton, clang::TagDecl *decl)<br>
SymbolFileDWARF::CompleteObjCInterfaceDecl (void *baton, clang::ObjCInterfaceDecl *decl)<br>
<br>
This will call into:<br>
<br>
lldb::clang_type_t<br>
SymbolFileDWARF::ResolveClangOpaqueTypeDefinition (lldb::clang_type_t clang_type)<br>
<br>
This code:<br>
1 - starts the definition<br>
2 - parses all members (ivars, methods, etc)<br>
3 - completes the definition<br>
<br>
What is happening here is you have something like:<br>
<br>
class A<br>
{<br>
class B<br>
{<br>
};<br>
};<br>
<br>
We are trying to create "B" here and it thinks that "A" must be complete before it can be added. In your code the "decl_ctx" that is passed to ClangASTContext::CreateRecordType() is for a class that has not been completed. I am pretty sure we didn't used to require type "A" to be complete before adding "B" as a decl in "A". Can we check if anything changed in clang recently? If no changes to clang were recently made, the solution is to call:<br>
<br>
SymbolFileDWARF::CompleteTagDecl (this, decl_ctx);<br>
<br>
To ensure the decl context is complete just before calling CXXRecordDecl::Create(). We want to avoid doing this it at all possible, so please do check for any clang changes first.<br>
<br>
Greg<br>
<div><div><br>
On Jul 10, 2013, at 6:42 PM, Michael Sartain <<a href="mailto:mikesart@gmail.com" target="_blank">mikesart@gmail.com</a>> wrote:<br>
<br>
> Turned on dwarf logging, and it looks like it's dying with some of the protobuf library symbols. The last output is:<br>
><br>
> 206694 1373493358.162653 [4ed3/7f542e5a5740]: (x86_64) /usr/local/lib/libprotobuf.so.8: SymbolFileDWARF::ResolveTypeUID (die = 0x0006f6ed) DW_TAG_class_type 'ErrorCollector'<br>
> 206695 1373493358.162667 [4ed3/7f542e5a5740]: (x86_64) /usr/local/lib/libprotobuf.so.8: SymbolFileDWARF::ResolveTypeUID (die = 0x0006f6ed) DW_TAG_class_type 'ErrorCollector' resolve parent forward type for 0x0006f6e3<br>
> 206696 1373493358.162681 [4ed3/7f542e5a5740]: (x86_64) /usr/local/lib/libprotobuf.so.8: SymbolFileDWARF::ParseType (die = 0x0006f6ed, decl_ctx = 0x19b3e58 (die 0x0006f6e3)) DW_TAG_class_type name = 'ErrorCollector')<br>
><br>
> This happens if I try to print several of the protobuf member functions: "p set_name", "p CopyFrom", "p MergeFrom", etc.<br>
><br>
> I don't understand a bunch of the code here yet, but this is the bit that's dying:<br>
><br>
> 1105| // Notify a C++ record declaration that we've added a member, so it can<br>
> 1106| // update it's class-specific state.<br>
> 1107| if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(this))<br>
> 1108+> Record->addedMember(D);<br>
><br>
> addedMember() is being called, but Record has no definition. It calls down into this, and line 411 dies.<br>
><br>
> 405| void CXXRecordDecl::addedMember(Decl *D) {<br>
> 406| if (!D->isImplicit() &&<br>
> 407| !isa<FieldDecl>(D) &&<br>
> 408| !isa<IndirectFieldDecl>(D) &&<br>
> 409| (!isa<TagDecl>(D) || cast<TagDecl>(D)->getTagKind() == TTK_Class ||<br>
> 410| cast<TagDecl>(D)->getTagKind() == TTK_Interface))<br>
> 411+> data().HasOnlyCMembers = false;<br>
> 412|<br>
> 413| // Ignore friends and invalid declarations.<br>
> 414| if (D->getFriendObjectKind() || D->isInvalidDecl())<br>
> 415| return;<br>
><br>
> This is bit of lldb code that is calling into clang:<br>
><br>
> 1161| // NOTE: Eventually CXXRecordDecl will be merged back into RecordDecl and<br>
> 1162| // we will need to update this code. I was told to currently always use<br>
> 1163| // the CXXRecordDecl class since we often don't know from debug information<br>
> 1164| // if something is struct or a class, so we default to always use the more<br>
> 1165| // complete definition just in case.<br>
> 1166| CXXRecordDecl *decl = CXXRecordDecl::Create (*ast,<br>
> 1167| (TagDecl::TagKind)kind,<br>
> 1168| decl_ctx,<br>
> 1169| SourceLocation(),<br>
> 1170| SourceLocation(),<br>
> 1171| name && name[0] ? &ast->Idents.get(name) : NULL);<br>
> 1172|<br>
> 1173| if (decl)<br>
> 1174| {<br>
> 1175| if (metadata)<br>
> 1176| SetMetadata(ast, decl, *metadata);<br>
> 1177|<br>
> 1178| if (access_type != eAccessNone)<br>
> 1179| decl->setAccess (ConvertAccessTypeToAccessSpecifier (access_type));<br>
> 1180|<br>
> 1181| if (decl_ctx)<br>
> 1182+> decl_ctx->addDecl (decl);<br>
><br>
> If I change the addDecl check to this, I don't crash anymore:<br>
><br>
> if (decl_ctx && decl->hasDefinition())<br>
> decl_ctx->addDecl (decl);<br>
><br>
> Anyone have any insights as to the right approach here?<br>
<br>
</div></div>We can't do this, otherwise the decl will never be added tot he record decl and it will hose up name lookup during expressions.<br>
<br>
We need to make sure the definition has been started. Getting a stack trace for where this is happening should show if this is being done under SymbolFileDWARF::ResolveClangOpaqueTypeDefinition ().<br>
<div><div><br>
><br>
> Thanks.<br>
> -Mike<br>
><br>
> On Wed, Jul 10, 2013 at 12:05 PM, Michael Sartain <<a href="mailto:mikesart@gmail.com" target="_blank">mikesart@gmail.com</a>> wrote:<br>
> I set a breakpoint on main, then type "expr set", and hit this assert:<br>
><br>
> (lldb) expr set<br>
> lldb: /home/mikesart/data/src/llvm.hg/llvm/tools/clang/include/clang/AST/DeclCXX.h:553: struct DefinitionData &clang::CXXRecordDecl::data(): Assertion `DefinitionData && "queried property of class with no definition"' failed.<br>
><br>
> DefinitionData is NULL. Log file shows the below. Full stacktrace is down below as well.<br>
><br>
> I don't believe I've got any symbols named "set", although this crash doesn't happen with a much simpler hello_world test app.<br>
><br>
> If anyone has any suggestions on where to look, please let me know. Otherwise I'll keep poking away here...<br>
> Thanks,<br>
> -Mike<br>
><br>
> 8955 1373482599.140844 [66e2/7ff3afd86740]: HandleCommand, revised_command_line: 'expr set'<br>
> 8956 1373482599.140854 [66e2/7ff3afd86740]: HandleCommand, wants_raw_input:'True'<br>
> 8957 1373482599.140908 [66e2/7ff3afd86740]: HandleCommand, command line after removing command name(s): 'set'<br>
> 8958 1373482599.141033 [66e2/7ff3afd86740]: == [ClangUserExpression::Evaluate] Parsing expression set ==<br>
> 8959 1373482599.141054 [66e2/7ff3afd86740]: ClangUserExpression::ScanContext()<br>
> 8960 1373482599.141133 [66e2/7ff3afd86740]: Parsing the following code:<br>
> 8961<br>
> 8962 #undef NULL<br>
> 8963 #undef Nil<br>
> 8964 #undef nil<br>
> 8965 #undef YES<br>
> 8966 #undef NO<br>
> 8967 #define NULL (__null)<br>
> 8968 #define Nil (__null)<br>
> 8969 #define nil (__null)<br>
> 8970 #define YES ((BOOL)1)<br>
> 8971 #define NO ((BOOL)0)<br>
> 8972 typedef signed char BOOL;<br>
> 8973 typedef signed __INT8_TYPE__ int8_t;<br>
> 8974 typedef unsigned __INT8_TYPE__ uint8_t;<br>
> 8975 typedef signed __INT16_TYPE__ int16_t;<br>
> 8976 typedef unsigned __INT16_TYPE__ uint16_t;<br>
> 8977 typedef signed __INT32_TYPE__ int32_t;<br>
> 8978 typedef unsigned __INT32_TYPE__ uint32_t;<br>
> 8979 typedef signed __INT64_TYPE__ int64_t;<br>
> 8980 typedef unsigned __INT64_TYPE__ uint64_t;<br>
> 8981 typedef signed __INTPTR_TYPE__ intptr_t;<br>
> 8982 typedef unsigned __INTPTR_TYPE__ uintptr_t;<br>
> 8983 typedef __SIZE_TYPE__ size_t;<br>
> 8984 typedef __PTRDIFF_TYPE__ ptrdiff_t;<br>
> 8985 typedef unsigned short unichar;<br>
> 8986<br>
> 8987<br>
> 8988 void<br>
> 8989 $__lldb_expr(void *$__lldb_arg)<br>
> 8990 {<br>
> 8991 set;<br>
> 8992 }<br>
> 8993<br>
> 8994 1373482599.143049 [66e2/7ff3afd86740]: LayoutRecordType[12] on (ASTContext*)0x2d0d650 for (RecordDecl*)0x2d1ea80 [name = '_objc_super']<br>
> 8995 1373482599.143353 [66e2/7ff3afd86740]: LayoutRecordType[13] on (ASTContext*)0x2d0d650 for (RecordDecl*)0x2d1ed20 [name = '_message_ref_t']<br>
> 8996 1373482599.145382 [66e2/7ff3afd86740]: FindExternalLexicalDecls[6] on (ASTContext*)0x2d0d650 in (TranslationUnitDecl*)0x2d1e3b0 with null predicate<br>
> 8997 1373482599.145593 [66e2/7ff3afd86740]: TransformTopLevelDecl(BOOL)<br>
> 8998 1373482599.145772 [66e2/7ff3afd86740]: TransformTopLevelDecl(int8_t)<br>
> 8999 1373482599.145942 [66e2/7ff3afd86740]: TransformTopLevelDecl(uint8_t)<br>
> 9000 1373482599.146113 [66e2/7ff3afd86740]: TransformTopLevelDecl(int16_t)<br>
> 9001 1373482599.146281 [66e2/7ff3afd86740]: TransformTopLevelDecl(uint16_t)<br>
> 9002 1373482599.146451 [66e2/7ff3afd86740]: TransformTopLevelDecl(int32_t)<br>
> 9003 1373482599.146619 [66e2/7ff3afd86740]: TransformTopLevelDecl(uint32_t)<br>
> 9004 1373482599.146803 [66e2/7ff3afd86740]: TransformTopLevelDecl(int64_t)<br>
> 9005 1373482599.146999 [66e2/7ff3afd86740]: TransformTopLevelDecl(uint64_t)<br>
> 9006 1373482599.147183 [66e2/7ff3afd86740]: TransformTopLevelDecl(intptr_t)<br>
> 9007 1373482599.147360 [66e2/7ff3afd86740]: TransformTopLevelDecl(uintptr_t)<br>
> 9008 1373482599.147539 [66e2/7ff3afd86740]: TransformTopLevelDecl(size_t)<br>
> 9009 1373482599.147716 [66e2/7ff3afd86740]: TransformTopLevelDecl(ptrdiff_t)<br>
> 9010 1373482599.147875 [66e2/7ff3afd86740]: TransformTopLevelDecl(unichar)<br>
> 9011 1373482599.148093 [66e2/7ff3afd86740]: ClangExpressionDeclMap::FindExternalVisibleDecls[18] for '$__lldb_arg' in a 'TranslationUnit'<br>
> 9012 1373482599.148118 [66e2/7ff3afd86740]: CEDM::FEVD[18] Searching the root namespace<br>
> 9013 1373482599.148145 [66e2/7ff3afd86740]: ClangASTSource::FindExternalVisibleDecls[18] on (ASTContext*)0x2d0d650 for '$__lldb_arg' in a 'TranslationUnit'<br>
> 9014 1373482599.148161 [66e2/7ff3afd86740]: CAS::FEVD[18] Searching the root namespace<br>
> 9015 1373482599.148374 [66e2/7ff3afd86740]: ClangExpressionDeclMap::FindExternalVisibleDecls[19] for '$__lldb_expr' in a 'TranslationUnit'<br>
> 9016 1373482599.148400 [66e2/7ff3afd86740]: CEDM::FEVD[19] Searching the root namespace<br>
> 9017 1373482599.148424 [66e2/7ff3afd86740]: ClangASTSource::FindExternalVisibleDecls[19] on (ASTContext*)0x2d0d650 for '$__lldb_expr' in a 'TranslationUnit'<br>
> 9018 1373482599.148438 [66e2/7ff3afd86740]: CAS::FEVD[19] Searching the root namespace<br>
> 9019 1373482599.148726 [66e2/7ff3afd86740]: ClangExpressionDeclMap::FindExternalVisibleDecls[20] for 'set' in a 'TranslationUnit'<br>
> 9020 1373482599.148752 [66e2/7ff3afd86740]: CEDM::FEVD[20] Searching the root namespace<br>
><br>
> (gdb) bt<br>
> #0 0x00007f0800b38425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64<br>
> #1 0x00007f0800b3bb8b in __GI_abort () at abort.c:91<br>
> #2 0x00007f0800b310ee in __assert_fail_base (fmt=<optimized out>, assertion=0x7f080565ec8a "DefinitionData && \"queried property of class with no definition\"", file=0x7f0805<br>
> 6cd817 "/home/mikesart/data/src/llvm.hg/llvm/tools/clang/include/clang/AST/DeclCXX.h", line=<optimized out>, function=<optimized out>) at assert.c:94<br>
> #3 0x00007f0800b31192 in __GI___assert_fail (assertion=0x7f080565ec8a "DefinitionData && \"queried property of class with no definition\"", file=0x7f08056cd817 "/home/mikesar<br>
> t/data/src/llvm.hg/llvm/tools/clang/include/clang/AST/DeclCXX.h", line=553, function=0x7f08056cd8f9 "struct DefinitionData &clang::CXXRecordDecl::data()") at assert.c:103<br>
> #4 0x00007f0803633e16 in clang::CXXRecordDecl::data (this=0x194ca40) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/include/clang/AST/DeclCXX.h:553<br>
> #5 0x00007f08036d205b in clang::CXXRecordDecl::addedMember (this=0x194ca40, D=0x1522100) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/AST/DeclCXX.cpp:411<br>
> #6 0x00007f08036c6423 in clang::DeclContext::addHiddenDecl (this=0x194ca78, D=0x1522100) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/AST/DeclBase.cpp:1108<br>
> #7 0x00007f08036c648d in clang::DeclContext::addDecl (this=0x194ca78, D=0x1522100) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/AST/DeclBase.cpp:1119<br>
> #8 0x00007f0803285cca in lldb_private::ClangASTContext::CreateRecordType (this=0x7f07d40017d8, decl_ctx=0x194ca78, access_type=lldb::eAccessPrivate, name=0x7f07edc5ffae "Erro<br>
> rCollector", kind=3, language=lldb::eLanguageTypeUnknown, metadata=0x7fffbd00f3f0) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:1182<br>
> #9 0x00007f08033bc0e3 in SymbolFileDWARF::ParseType (this=0x7f07d40059b0, sc=..., dwarf_cu=0x7f07d4068d40, die=0x12e5150, type_is_new_ptr=0x0) at /home/mikesart/data/src/llvm<br>
> .hg/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:6157<br>
> #10 0x00007f08033b3961 in SymbolFileDWARF::GetTypeForDIE (this=0x7f07d40059b0, dwarf_cu=0x7f07d4068d40, die=0x12e5150) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/sourc<br>
> e/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4496<br>
> #11 0x00007f08033b373e in SymbolFileDWARF::ResolveType (this=0x7f07d40059b0, dwarf_cu=0x7f07d4068d40, type_die=0x12e5150, assert_not_being_parsed=true) at /home/mikesart/data/<br>
> src/llvm.hg/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:2652<br>
> #12 0x00007f08033aa418 in SymbolFileDWARF::ResolveTypeUID (this=0x7f07d40059b0, cu=0x7f07d4068d40, die=0x12e5150, assert_not_being_parsed=true) at /home/mikesart/data/src/llvm<br>
> .hg/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:2325<br>
> #13 0x00007f08033b17fe in SymbolFileDWARF::ResolveTypeUID (this=0x7f07d40059b0, type_uid=456429) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Plugins/SymbolFile/D<br>
> WARF/SymbolFileDWARF.cpp:2265<br>
> #14 0x00007f08032e96fc in lldb_private::Type::GetEncodingType (this=0x1522fa0) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Symbol/Type.cpp:316<br>
> #15 0x00007f08032e8f56 in lldb_private::Type::ResolveClangType (this=0x1522fa0, clang_type_resolve_state=lldb_private::Type::eResolveStateForward) at /home/mikesart/data/src/l<br>
> lvm.hg/llvm/tools/lldb/source/Symbol/Type.cpp:519<br>
> #16 0x00007f08032e9d9e in lldb_private::Type::GetClangForwardType (this=0x1522fa0) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Symbol/Type.cpp:681<br>
> #17 0x00007f08033b97ec in SymbolFileDWARF::ParseChildParameters (this=0x7f07d40059b0, sc=..., containing_decl_ctx=0x194c968, dwarf_cu=0x7f07d4068d40, parent_die=0x132a770, ski<br>
> p_artificial=true, is_static=@0x7fffbd010f35: false, type_list=0x7f07d4005938, function_param_types=..., function_param_decls=..., type_quals=@0x7fffbd010f20: 0, template_para<br>
> m_infos=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4279<br>
> #18 0x00007f08033bd3ca in SymbolFileDWARF::ParseType (this=0x7f07d40059b0, sc=..., dwarf_cu=0x7f07d4068d40, die=0x132a770, type_is_new_ptr=0x0) at /home/mikesart/data/src/llvm<br>
> .hg/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:6507<br>
> #19 0x00007f08033b3961 in SymbolFileDWARF::GetTypeForDIE (this=0x7f07d40059b0, dwarf_cu=0x7f07d4068d40, die=0x132a770) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/sourc<br>
> e/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4496<br>
> #20 0x00007f08033b373e in SymbolFileDWARF::ResolveType (this=0x7f07d40059b0, dwarf_cu=0x7f07d4068d40, type_die=0x132a770, assert_not_being_parsed=true) at /home/mikesart/data/<br>
> src/llvm.hg/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:2652<br>
> #21 0x00007f08033aa418 in SymbolFileDWARF::ResolveTypeUID (this=0x7f07d40059b0, cu=0x7f07d4068d40, die=0x132a770, assert_not_being_parsed=true) at /home/mikesart/data/src/llvm<br>
> .hg/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:2325<br>
> #22 0x00007f08033bf8de in SymbolFileDWARF::GetClangDeclContextForDIE (this=0x7f07d40059b0, sc=..., cu=0x7f07d4068d40, die=0x132a770) at /home/mikesart/data/src/llvm.hg/llvm/to<br>
> ols/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4605<br>
> #23 0x00007f08033b16f6 in SymbolFileDWARF::GetClangDeclContextForDIEOffset (this=0x7f07d40059b0, sc=..., die_offset=650576) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/<br>
> source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4531<br>
> #24 0x00007f08033bf7c0 in SymbolFileDWARF::GetClangDeclContextForDIE (this=0x7f07d40059b0, sc=..., cu=0x7f07d4068d40, die=0x13685c0) at /home/mikesart/data/src/llvm.hg/llvm/to<br>
> ols/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4594<br>
> #25 0x00007f08033b16f6 in SymbolFileDWARF::GetClangDeclContextForDIEOffset (this=0x7f07d40059b0, sc=..., die_offset=833179) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/<br>
> source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4531<br>
> #26 0x00007f08033bf80b in SymbolFileDWARF::GetClangDeclContextForDIE (this=0x7f07d40059b0, sc=..., cu=0x7f07d4068d40, die=0x1368610) at /home/mikesart/data/src/llvm.hg/llvm/to<br>
> ols/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4598<br>
> #27 0x00007f08033b16f6 in SymbolFileDWARF::GetClangDeclContextForDIEOffset (this=0x7f07d40059b0, sc=..., die_offset=833247) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/<br>
> source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:4531<br>
> #28 0x00007f08033b163a in SymbolFileDWARF::GetClangDeclContextForTypeUID (this=0x7f07d40059b0, sc=..., type_uid=833247) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/sour<br>
> ce/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:2250<br>
> #29 0x00007f08032c24b8 in lldb_private::Function::GetClangDeclContext (this=0x1840070) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Symbol/Function.cpp:451<br>
> #30 0x00007f08031cf0dc in lldb_private::ClangExpressionDeclMap::FindExternalVisibleDecls (this=0x1b3e190, context=..., module_sp=..., namespace_decl=..., current_id=2) at /hom<br>
> e/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Expression/ClangExpressionDeclMap.cpp:1329<br>
> #31 0x00007f08031cd6a6 in lldb_private::ClangExpressionDeclMap::FindExternalVisibleDecls (this=0x1b3e190, context=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/sourc<br>
> e/Expression/ClangExpressionDeclMap.cpp:872<br>
> #32 0x00007f0803203539 in lldb_private::ClangASTSource::FindExternalVisibleDeclsByName (this=0x1b3e190, decl_ctx=0x13b62f0, clang_decl_name=...) at /home/mikesart/data/src/llv<br>
> m.hg/llvm/tools/lldb/source/Expression/ClangASTSource.cpp:162<br>
> #33 0x00007f08031df7de in lldb_private::ClangASTSource::ClangASTSourceProxy::FindExternalVisibleDeclsByName(clang::DeclContext const*, clang::DeclarationName) () from /home/mi<br>
> kesart/data/src/llvm.hg/build/lib/liblldb.so.3.4<br>
> #34 0x00007f08036c6fba in clang::DeclContext::lookup (this=0x13b62f0, Name=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/AST/DeclBase.cpp:1242<br>
> #35 0x00007f08036c99f1 in clang::DeclContext::lookup (this=0x13b62f0, Name=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/include/clang/AST/DeclBase.h:1439<br>
> #36 0x00007f080403986a in LookupDirect (S=..., R=..., DC=0x13b62f0) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Sema/SemaLookup.cpp:673<br>
> #37 0x00007f0804038518 in CppNamespaceLookup (S=..., R=..., Context=..., NS=0x13b62f0, UDirs=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Sema/SemaLookup.cpp:7<br>
> 65<br>
> #38 0x00007f0804037ba5 in clang::Sema::CppLookupName (this=0x13b98e0, R=..., S=0x13be3b0) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Sema/SemaLookup.cpp:1088<br>
> #39 0x00007f0804039499 in clang::Sema::LookupName (this=0x13b98e0, R=..., S=0x13ca620, AllowBuiltinCreation=true) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Sema/<br>
> SemaLookup.cpp:1261<br>
> #40 0x00007f080403a4ee in clang::Sema::LookupParsedName (this=0x13b98e0, R=..., S=0x13ca620, SS=0x7fffbd013ba8, AllowBuiltinCreation=true, EnteringContext=false) at /home/mike<br>
> sart/data/src/llvm.hg/llvm/tools/clang/lib/Sema/SemaLookup.cpp:1684<br>
> #41 0x00007f0803dff79f in clang::Sema::ClassifyName (this=0x13b98e0, S=0x13ca620, SS=..., Name=@0x7fffbd013b90: 0x13d5fa8, NameLoc=..., NextToken=..., IsAddressOfOperand=false<br>
> , CCC=0x7fffbd013da0) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Sema/SemaDecl.cpp:610<br>
> #42 0x00007f0803cb4cd8 in clang::Parser::TryAnnotateName (this=0x13bbfe0, IsAddressOfOperand=false, CCC=0x7fffbd013da0) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib<br>
> /Parse/Parser.cpp:1384<br>
> #43 0x00007f0803d25d3f in clang::Parser::ParseStatementOrDeclarationAfterAttributes (this=0x13bbfe0, Stmts=..., OnlyStatement=false, TrailingElseLoc=0x0, Attrs=...) at /home/m<br>
> ikesart/data/src/llvm.hg/llvm/tools/clang/lib/Parse/ParseStmt.cpp:166<br>
> #44 0x00007f0803d25695 in clang::Parser::ParseStatementOrDeclaration (this=0x13bbfe0, Stmts=..., OnlyStatement=false, TrailingElseLoc=0x0) at /home/mikesart/data/src/llvm.hg/l<br>
> lvm/tools/clang/lib/Parse/ParseStmt.cpp:102<br>
> #45 0x00007f0803d2c4a0 in clang::Parser::ParseCompoundStatementBody (this=0x13bbfe0, isStmtExpr=false) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Parse/ParseStmt.<br>
> cpp:843<br>
> #46 0x00007f0803d2f43f in clang::Parser::ParseFunctionStatementBody (this=0x13bbfe0, Decl=0x13c55a0, BodyScope=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Par<br>
> se/ParseStmt.cpp:2393<br>
> #47 0x00007f0803cb3f65 in clang::Parser::ParseFunctionDefinition (this=0x13bbfe0, D=..., TemplateInfo=..., LateParsedAttrs=0x7fffbd014aa8) at /home/mikesart/data/src/llvm.hg/l<br>
> lvm/tools/clang/lib/Parse/Parser.cpp:1118<br>
> #48 0x00007f0803ccb5d3 in clang::Parser::ParseDeclGroup (this=0x13bbfe0, DS=..., Context=0, AllowFunctionDefinitions=true, DeclEnd=0x0, FRI=0x0) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Parse/ParseDecl.cpp:1622<br>
> #49 0x00007f0803cb3078 in clang::Parser::ParseDeclOrFunctionDefInternal (this=0x13bbfe0, attrs=..., DS=..., AS=clang::AS_none) at /home/mikesart/data/src/llvm.hg/llvm/tools/cl<br>
> ang/lib/Parse/Parser.cpp:896<br>
> #50 0x00007f0803cb2843 in clang::Parser::ParseDeclarationOrFunctionDefinition (this=0x13bbfe0, attrs=..., DS=0x0, AS=clang::AS_none) at /home/mikesart/data/src/llvm.hg/llvm/to<br>
> ols/clang/lib/Parse/Parser.cpp:912<br>
> #51 0x00007f0803cb2060 in clang::Parser::ParseExternalDeclaration (this=0x13bbfe0, attrs=..., DS=0x0) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Parse/Parser.cpp:<br>
> 777<br>
> #52 0x00007f0803cb125b in clang::Parser::ParseTopLevelDecl (this=0x13bbfe0, Result=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Parse/Parser.cpp:582<br>
> #53 0x00007f0803cad102 in clang::ParseAST (S=..., PrintStats=false, SkipFunctionBodies=false) at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Parse/ParseAST.cpp:144<br>
> #54 0x00007f0803caceaa in clang::ParseAST (PP=..., Consumer=0x1d30170, Ctx=..., PrintStats=false, TUKind=clang::TU_Complete, CompletionConsumer=0x0, SkipFunctionBodies=false)<br>
> at /home/mikesart/data/src/llvm.hg/llvm/tools/clang/lib/Parse/ParseAST.cpp:96<br>
> #55 0x00007f08031d904a in lldb_private::ClangExpressionParser::Parse (this=0x7fffbd016120, stream=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Expression/Cla<br>
> ngExpressionParser.cpp:400<br>
> #56 0x00007f0803196171 in lldb_private::ClangUserExpression::Parse (this=0x1cc8840, error_stream=..., exe_ctx=..., execution_policy=lldb_private::eExecutionPolicyOnlyWhenNeede<br>
> d, keep_result_in_memory=true) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Expression/ClangUserExpression.cpp:504<br>
> #57 0x00007f0803197d4f in lldb_private::ClangUserExpression::EvaluateWithError (exe_ctx=..., execution_policy=lldb_private::eExecutionPolicyOnlyWhenNeeded, language=lldb::eLan<br>
> guageTypeUnknown, desired_type=lldb_private::ClangExpression::eResultTypeAny, unwind_on_error=true, ignore_breakpoints=true, expr_cstr=0xfdddd8 "set", expr_prefix=0x0, result_<br>
> valobj_sp=..., error=..., run_others=true, timeout_usec=0) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Expression/ClangUserExpression.cpp:1006<br>
> #58 0x00007f0803197b3c in lldb_private::ClangUserExpression::Evaluate (exe_ctx=..., execution_policy=lldb_private::eExecutionPolicyOnlyWhenNeeded, language=lldb::eLanguageType<br>
> Unknown, desired_type=lldb_private::ClangExpression::eResultTypeAny, unwind_on_error=true, ignore_breakpoints=true, expr_cstr=0xfdddd8 "set", expr_prefix=0x0, result_valobj_sp<br>
> =..., run_others=true, timeout_usec=0) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Expression/ClangUserExpression.cpp:947<br>
> #59 0x00007f0803360671 in lldb_private::Target::EvaluateExpression (this=0x12812f0, expr_cstr=0xfdddd8 "set", frame=0x7f07d772d3d0, result_valobj_sp=..., options=...) at /home<br>
> /mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Target/Target.cpp:1889<br>
> #60 0x00007f0803509388 in lldb_private::CommandObjectExpression::EvaluateExpression (this=0xe875a0, expr=0xfdddd8 "set", output_stream=0x127cfe0, error_stream=0x127d038, resul<br>
> t=0x127cfe0) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Commands/CommandObjectExpression.cpp:345<br>
> #61 0x00007f0803509d0e in lldb_private::CommandObjectExpression::DoExecute (this=0xe875a0, command=0xfdddd8 "set", result=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/ll<br>
> db/source/Commands/CommandObjectExpression.cpp:528<br>
> #62 0x00007f080323b545 in lldb_private::CommandObjectRaw::Execute (this=0xe875a0, args_string=0xfdddd8 "set", result=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/so<br>
> urce/Interpreter/CommandObject.cpp:1064<br>
> #63 0x00007f080322cca2 in lldb_private::CommandInterpreter::HandleCommand (this=0xe7f5f0, command_line=0x7f07e8000ed8 "expr set", lazy_add_to_history=lldb_private::eLazyBoolYe<br>
> s, result=..., override_context=0x0, repeat_on_empty_command=true, no_context_switching=false) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/source/Interpreter/CommandInt<br>
> erpreter.cpp:1825<br>
> #64 0x00007f0802fe7404 in lldb::SBCommandInterpreter::HandleCommand (this=0x7fffbd017060, command_line=0x7f07e8000ed8 "expr set", result=..., add_to_history=true) at /home/mik<br>
> esart/data/src/llvm.hg/llvm/tools/lldb/source/API/SBCommandInterpreter.cpp:122<br>
> #65 0x000000000040bf50 in Driver::HandleIOEvent (this=0x7fffbd019d20, event=...) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/tools/driver/Driver.cpp:1083<br>
> #66 0x000000000040d8aa in Driver::MainLoop (this=0x7fffbd019d20) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/tools/driver/Driver.cpp:1556<br>
> #67 0x000000000040e0db in main (argc=1, argv=0x7fffbd019f28, envp=0x7fffbd019f38) at /home/mikesart/data/src/llvm.hg/llvm/tools/lldb/tools/driver/Driver.cpp:1727<br>
><br>
</div></div>> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div><br></div></div></div>