[Lldb-commits] [lldb] r167008 - /lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Greg Clayton gclayton at apple.com
Tue Oct 30 10:02:54 PDT 2012


You might try this patch I committed to mainline instead:

% svn commit source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Sending        source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Transmitting file data .
Committed revision 167024.


On Oct 30, 2012, at 12:10 AM, Carlo Kok <ck at remobjects.com> wrote:

> Author: carlokok
> Date: Tue Oct 30 02:10:28 2012
> New Revision: 167008
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=167008&view=rev
> Log:
> Address of element fails on Windows with an assert/abort if there are no entries in the list.
> 
> Modified:
>    lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
> 
> Modified: lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=167008&r1=167007&r2=167008&view=diff
> ==============================================================================
> --- lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
> +++ lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Tue Oct 30 02:10:28 2012
> @@ -5900,7 +5900,7 @@
> 
>                     // clang_type will get the function prototype clang type after this call
>                     clang_type = ast.CreateFunctionType (return_clang_type, 
> -                                                         &function_param_types[0], 
> +                                                         function_param_types.size() == 0 ? NULL : &function_param_types[0], 
>                                                          function_param_types.size(), 
>                                                          is_variadic, 
>                                                          type_quals);
> 
> 
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits




More information about the lldb-commits mailing list