From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17567 invoked by alias); 27 Jun 2007 10:20:14 -0000 Received: (qmail 17555 invoked by uid 22791); 27 Jun 2007 10:20:13 -0000 X-Spam-Check-By: sourceware.org Received: from smtp1.rug.nl (HELO smtp1.rug.nl) (129.125.50.11) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 27 Jun 2007 10:20:11 +0000 Received: from smtp1.rug.nl ([129.125.50.11]) by smtp1.rug.nl (SMSSMTP 4.1.0.19) with SMTP id M2007062712200802586 for ; Wed, 27 Jun 2007 12:20:08 +0200 Received: from [129.125.177.235] (theobio36.biol.rug.nl [129.125.177.235]) by smtp1.rug.nl (8.12.11.20060308/8.12.11) with ESMTP id l5RAK81Q020503 for ; Wed, 27 Jun 2007 12:20:09 +0200 (MEST) Message-ID: <468239D9.1090001@rug.nl> Date: Wed, 27 Jun 2007 10:20:00 -0000 From: Bram Kuijper User-Agent: Thunderbird 2.0.0.4 (X11/20070618) MIME-Version: 1.0 To: gdb@sourceware.org Subject: evaluate more complex expressions using gdb Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00337.txt.bz2 Hi all, again a newbie question: can I also evaluate the result of subtractions, additions using the display command? Like some pointer arithmetics: display pointer1 - start_pointer If I do this, gdb gives me the following error: Disabling display 6 to avoid infinite recursion. 6: pointer1 - start_pointer = One of the arguments you tried to pass to operator- could not be converted to what the function wants. Is there any way to to this using gdb? thanks, Bram