From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2255 invoked by alias); 17 Apr 2003 03:37:51 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2245 invoked from network); 17 Apr 2003 03:37:49 -0000 Received: from unknown (HELO baradas.org) (66.166.225.55) by sources.redhat.com with SMTP; 17 Apr 2003 03:37:49 -0000 Received: by baradas.org (Postfix, from userid 500) id 2AEAA98982; Wed, 16 Apr 2003 23:37:46 -0400 (EDT) From: Peter Barada To: smita@cse.ucsc.edu Cc: brandner@emt.tugraz.at, gdb@sources.redhat.com In-reply-to: (message from Smita on Wed, 16 Apr 2003 12:49:59 -0700 (PDT)) Subject: Re: return type of a fucntion References: Message-Id: <20030417033746.2AEAA98982@baradas.org> Date: Thu, 17 Apr 2003 03:37:00 -0000 X-SW-Source: 2003-04/txt/msg00189.txt.bz2 >Hi, >When I print $r3 on returning from a function, I get the return value. But >is there a way to get the type of the return value (eg. whether it is a >pointer or an interger)?? If you know which function you're in, you could always 'ptype functionName' where 'fuctionName' is replaced with the function's name and you'll see the type that the function returns. Then you could cast $r3 to that type. Of course this doesn't works so well with float/double as well as structures. -- Peter Barada peter@baradas.org