This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix SIGSEGV in gdb when printing ctor of non-virtual class
- From: Tom Tromey <tromey at redhat dot com>
- To: Aleksandar Ristovski <aristovski at qnx dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 02 Mar 2009 08:24:23 -0700
- Subject: Re: [patch] Fix SIGSEGV in gdb when printing ctor of non-virtual class
- References: <ga6bmt$6li$1@ger.gmane.org> <48DD1C8A.7030206@qnx.com> <gogqdi$qfm$1@ger.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Aleksandar" == Aleksandar Ristovski <aristovski@qnx.com> writes:
Aleksandar> An old patch. Gdb still SIGSEGV on this testcase, but I
Aleksandar> haven't got any replies.
Aleksandar> + /* Constructors of non-virtual classes will not have block. */
This seems weird. Is this a gcc bug or something?
Should this somehow be fixed elsewhere? I don't know.
Aleksandar> + release_value (v);
I don't think you want release_value here. You can just drop the
value, it will automatically be freed later.
Tom