From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Snyder To: Andrew Cagney Cc: Mark Kettenis , msnyder@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [PATCH] Fix i386 FPU register conversion code Date: Mon, 30 Jul 2001 10:36:00 -0000 Message-id: <3B659A3C.6B29011@cygnus.com> References: <200107281649.f6SGn6w19068@delius.kettenis.local> <3B6316FC.7D86@redhat.com> <200107282053.f6SKrMn19253@delius.kettenis.local> <3B633A59.6030009@cygnus.com> X-SW-Source: 2001-07/msg00719.html Andrew Cagney wrote: > > > Hmm, when I added the assertion, I was under the impression that if > > the virtual type wasn't a floating-point type it would be a GDB > > internal error, hence the gdb_assert. However, this is probably not > > entirely true, since I now think that bogus debug information (e.g. a > > stab that says that an integer variable that lives in a > > floating-point register) might trip the assertion. Printing a warning > > and returning without doing anything is probably better. > > By ``nothing'' I guess you mean do something like zero the destination > buffer :-) Right. Silently fix it up, rather than call abort. Some errors don't warrant terminating a possibly long debug session.