From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19742 invoked by alias); 2 Sep 2009 16:48:21 -0000 Received: (qmail 19680 invoked by uid 22791); 2 Sep 2009 16:48:18 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Sep 2009 16:48:13 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n82GlwGI019599; Wed, 2 Sep 2009 12:47:58 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n82GlvBo007610; Wed, 2 Sep 2009 12:47:58 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n82GluDd014052; Wed, 2 Sep 2009 12:47:57 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 4E2D2378242; Wed, 2 Sep 2009 10:47:56 -0600 (MDT) From: Tom Tromey To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: RFC: DW_OP_call_frame_cfa, again References: <200909021559.24406.pedro@codesourcery.com> Reply-To: Tom Tromey Date: Wed, 02 Sep 2009 16:48:00 -0000 In-Reply-To: <200909021559.24406.pedro@codesourcery.com> (Pedro Alves's message of "Wed, 2 Sep 2009 15:59:24 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-09/txt/msg00060.txt.bz2 >>>>> "Pedro" == Pedro Alves writes: Pedro> Please don't hardcode "run". It won't work with remote targets Pedro> (e.g., gdbserver). Sorry about that. This uses runto_main and gdb_continue_to_breakpoint, which should work everywhere, at least if other tests are any indication. Tom 2009-09-02 Tom Tromey * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint. Index: gdb.dwarf2/callframecfa.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.dwarf2/callframecfa.exp,v retrieving revision 1.1 diff -u -r1.1 callframecfa.exp --- gdb.dwarf2/callframecfa.exp 2 Sep 2009 14:53:57 -0000 1.1 +++ gdb.dwarf2/callframecfa.exp 2 Sep 2009 16:32:22 -0000 @@ -44,8 +44,12 @@ gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} -gdb_test "break *func" "Breakpoint 1.*" "set breakpoint for call-frame-cfa" -gdb_test "run" "" "run for call-frame-cfa" +if ![runto_main] { + return -1 +} + +gdb_test "break *func" "Breakpoint 2.*" "set breakpoint for call-frame-cfa" +gdb_continue_to_breakpoint "continue to breakpoint for call-frame-cfa" gdb_test "display arg" "arg = 77" "set display for call-frame-cfa" # We know how many instructions are in the function. Note that we