From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14073 invoked by alias); 30 May 2011 16:09:41 -0000 Received: (qmail 14029 invoked by uid 22791); 30 May 2011 16:09:40 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 May 2011 16:09:25 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id BEEFE2BB05F; Mon, 30 May 2011 12:09:24 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id huXw-XNUI9GE; Mon, 30 May 2011 12:09:24 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 77C112BB04F; Mon, 30 May 2011 12:09:24 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id BCD7B145615; Mon, 30 May 2011 09:09:21 -0700 (PDT) Date: Mon, 30 May 2011 16:09:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: pedro@codesourcery.com, gdb-patches@sourceware.org Subject: Re: Don't allow calling inferior functions in reverse execution mode Message-ID: <20110530160921.GC2620@adacore.com> References: <201105261723.22519.pedro@codesourcery.com> <20110526163654.GC2588@adacore.com> <83sjs1cr9u.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <83sjs1cr9u.fsf@gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2011-05/txt/msg00682.txt.bz2 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 135 > How about > > Cannot call functions in reverse mode. That's a good suggestion, so I applied it as attached... Thanks! -- Joel --G4iJoqBmSsgzjUCe Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="infcall.diff" Content-length: 1226 commit 01630be116f8e3e5eb5791d29fef5af99305a40c Author: Joel Brobecker Date: Mon May 30 08:59:07 2011 -0700 Rephrase error message in infcall.c:call_function_by_hand No real change besides the error message. gdb/ChangeLog: * infcall.c (call_function_by_hand): Rephrase error message. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 83203a2..7a60b8e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-05-30 Joel Brobecker + + * infcall.c (call_function_by_hand): Rephrase error message. + 2011-05-27 Pedro Alves * defs.h (struct thread_info, struct inferior): Delete forward diff --git a/gdb/infcall.c b/gdb/infcall.c index 4063b7f..6553e2a 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -496,7 +496,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args) error (_("May not call functions while looking at trace frames.")); if (execution_direction == EXEC_REVERSE) - error (_("May not call functions in reverse.")); + error (_("Cannot call functions in reverse mode.")); frame = get_current_frame (); gdbarch = get_frame_arch (frame); --G4iJoqBmSsgzjUCe--