From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28082 invoked by alias); 26 May 2011 16:23:49 -0000 Received: (qmail 28072 invoked by uid 22791); 26 May 2011 16:23:48 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 26 May 2011 16:23:25 +0000 Received: (qmail 21777 invoked from network); 26 May 2011 16:23:24 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 26 May 2011 16:23:24 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Don't allow calling inferior functions in reverse execution mode Date: Thu, 26 May 2011 16:23:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201105261723.22519.pedro@codesourcery.com> X-IsSubscribed: yes 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/msg00606.txt.bz2 Can't work... Applied. -- Pedro Alves 2011-05-26 Pedro Alves gdb/ * infcall.c (call_function_by_hand): Don't allow calling functions in reverse execution mode. --- gdb/infcall.c | 3 +++ 1 file changed, 3 insertions(+) Index: src/gdb/infcall.c =================================================================== --- src.orig/gdb/infcall.c 2011-05-26 17:16:02.000000000 +0100 +++ src/gdb/infcall.c 2011-05-26 17:15:57.251253809 +0100 @@ -495,6 +495,9 @@ call_function_by_hand (struct value *fun if (get_traceframe_number () >= 0) error (_("May not call functions while looking at trace frames.")); + if (execution_direction == EXEC_REVERSE) + error (_("May not call functions in reverse.")); + frame = get_current_frame (); gdbarch = get_frame_arch (frame);