From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8463 invoked by alias); 20 Oct 2009 18:51:55 -0000 Received: (qmail 8451 invoked by uid 22791); 20 Oct 2009 18:51:54 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Oct 2009 18:51:49 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 219111301C; Tue, 20 Oct 2009 11:51:48 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost3.vmware.com (Postfix) with ESMTP id 17316CD99A; Tue, 20 Oct 2009 11:51:48 -0700 (PDT) Message-ID: <4ADE054A.4060508@vmware.com> Date: Tue, 20 Oct 2009 18:51:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" , Pedro Alves Subject: [RFA] sync reverse debug with pspace changes Content-Type: multipart/mixed; boundary="------------060308020603030102030408" 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: 2009-10/txt/msg00472.txt.bz2 This is a multi-part message in MIME format. --------------060308020603030102030408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 130 Pedro, please check this for me and see if it's right. It fixes 4 testsuite failures and doesn't introduce any new ones. Michael --------------060308020603030102030408 Content-Type: text/plain; name="pspace.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pspace.txt" Content-length: 1022 2009-10-20 Michael Snyder * infrun.c (handle_inferior_event): Add pspace field to sal for reverse execution cases. Index: infrun.c =================================================================== RCS file: /cvs/src/src/gdb/infrun.c,v retrieving revision 1.413 diff -u -p -r1.413 infrun.c --- infrun.c 19 Oct 2009 09:51:41 -0000 1.413 +++ infrun.c 20 Oct 2009 18:48:12 -0000 @@ -4261,6 +4261,7 @@ infrun: not switching back to stepped th struct symtab_and_line tmp_sal; tmp_sal = find_pc_line (ecs->stop_func_start, 0); + tmp_sal.pspace = get_frame_program_space (frame); if (tmp_sal.line != 0) { if (execution_direction == EXEC_REVERSE) @@ -4328,6 +4329,7 @@ infrun: not switching back to stepped th struct symtab_and_line sr_sal; init_sal (&sr_sal); sr_sal.pc = ecs->stop_func_start; + sr_sal.pspace = get_frame_program_space (frame); insert_step_resume_breakpoint_at_sal (gdbarch, sr_sal, null_frame_id); keep_going (ecs); --------------060308020603030102030408--