[patch] Fix `return' of long/long-long results with no debuginfo
Mark Kettenis
mark.kettenis@xs4all.nl
Wed Feb 11 20:40:00 GMT 2009
> Date: Wed, 11 Feb 2009 20:45:11 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>
> Hi,
>
> the command `return' assumes `int' result when the current function has no
> debug info. This assumption breaks for example `void *' return on x86_64.
>
> Original bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=365111
>
> Regression-tested on x86_64-unknown-linux-gnu.
>
> This testcase also covers the previous fix of the `return' crash:
> http://sourceware.org/ml/gdb-patches/2009-01/msg00213.html
>
>
> Thanks,
> Jan
Sorry, this is wrong. Functions without return type implicitly return int.
More information about the Gdb-patches
mailing list