From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4177 invoked by alias); 11 Feb 2009 20:40:35 -0000 Received: (qmail 4169 invoked by uid 22791); 11 Feb 2009 20:40:35 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Feb 2009 20:40:23 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n1BKe0iU000141; Wed, 11 Feb 2009 21:40:00 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n1BKdxb3028188; Wed, 11 Feb 2009 21:40:00 +0100 (CET) Date: Wed, 11 Feb 2009 20:40:00 -0000 Message-Id: <200902112040.n1BKdxb3028188@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: gdb-patches@sourceware.org In-reply-to: <20090211194511.GA9324@host0.dyn.jankratochvil.net> (message from Jan Kratochvil on Wed, 11 Feb 2009 20:45:11 +0100) Subject: Re: [patch] Fix `return' of long/long-long results with no debuginfo References: <20090211194511.GA9324@host0.dyn.jankratochvil.net> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00250.txt.bz2 > Date: Wed, 11 Feb 2009 20:45:11 +0100 > From: Jan Kratochvil > > 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.