[Lldb-commits] [lldb] r221805 - Avoid crash in InitializeNonZerothFrame if no module found

Ed Maste emaste at freebsd.org
Wed Nov 12 10:56:30 PST 2014

Hi Jason,

On 12 November 2014 13:49, Ed Maste <emaste at freebsd.org> wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=221805&view=rev
> ...
> -        if (temporary_module_sp->ResolveSymbolContextForAddress (temporary_pc, resolve_scope, m_sym_ctx) & resolve_scope)
> +        if (temporary_module_sp &&
> +            temporary_module_sp->ResolveSymbolContextForAddress (temporary_pc, resolve_scope, m_sym_ctx) & resolve_scope)

I'm not sure if it's expected that temporary_module_sp could be null,
so perhaps further changes are needed. But at least it makes sense to
continue on with m_sym_ctx_valid = false rather than crashing.

More information about the lldb-commits mailing list