This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] Fix crashes on complex types
On Tue, Mar 19, 2002 at 02:22:12PM -0500, Elena Zannoni wrote:
> Daniel Jacobowitz writes:
> > The complex type support has bitrotten a bit. We used to set
> > TYPE_TARGET_TYPE properly in all the places we would create such types,
> > but a few more have crept in during the intervening years. This patch
> > just makes sure that field is valid, so that we can use it to print
> > later. This fixes PR gdb/422.
>
> Looks good.
OK, I'll check it in later today. Thanks!
> > OK to commit?
> >
>
> Any chance you can sneak in a testcase? Steal the gcc one?
Well, I don't know how. I'll think about it. The problem is that
complex types in C require either C99 or at least GCC; I'll see if I
can handle the testcase not compiling gracefully.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer