[Lldb-commits] [lldb] r200985 - Fix a bug where we will crash if we have a class "B" that is contained inside a class "A" in the DWARF where "A" is a forward declaration.

Todd Fiala tfiala at google.com
Fri Feb 7 12:23:10 PST 2014


Thanks much, Greg!


On Fri, Feb 7, 2014 at 11:21 AM, Greg Clayton <gclayton at apple.com> wrote:

> Author: gclayton
> Date: Fri Feb  7 13:21:56 2014
> New Revision: 200985
>
> URL: http://llvm.org/viewvc/llvm-project?rev=200985&view=rev
> Log:
> Fix a bug where we will crash if we have a class "B" that is contained
> inside a class "A" in the DWARF where "A" is a forward declaration.
>
> <rdar://problem/14673945>
> <rdar://problem/15682781>
>
>
> Modified:
>     lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
>
> Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=200985&r1=200984&r2=200985&view=diff
>
> ==============================================================================
> --- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
> (original)
> +++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Fri Feb
>  7 13:21:56 2014
> @@ -6263,6 +6263,11 @@ SymbolFileDWARF::ParseType (const Symbol
>                                  case DW_TAG_subprogram:
>                                  case DW_TAG_member:
>                                  case DW_TAG_APPLE_property:
> +                                case DW_TAG_class_type:
> +                                case DW_TAG_structure_type:
> +                                case DW_TAG_enumeration_type:
> +                                case DW_TAG_typedef:
> +                                case DW_TAG_union_type:
>                                      child_die = NULL;
>                                      is_forward_declaration = false;
>                                      break;
>
>
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits
>



-- 
Todd Fiala | Software Engineer | tfiala at google.com | 650-943-3180
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140207/0e839cbf/attachment.html>


More information about the lldb-commits mailing list