This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch]: Replace stryoul call to fetch address
On 02/27/2013 07:42 PM, Corinna Vinschen wrote:
> The SEGV occurs in exception.c, function throw_exception, though.
> The `*current_catcher->exception = exception;' assignment crashes
> because current_catcher->exception is NULL. I don't understand yet
> why it's NULL, and why the throw_exception function doesn't test
> this before trying to write *current_catcher->exception.
What's the backtrace like?
There's always a top level catcher installed (gdb_main -> catch_errors)
Unless, hmm, waitaminut. What's the backtrace like? I just realized
a very early exception in captured_main can result in bad
things like that.
--
Pedro Alves