From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15414 invoked by alias); 6 Oct 2013 19:47:46 -0000 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 Received: (qmail 15400 invoked by uid 89); 6 Oct 2013 19:47:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 06 Oct 2013 19:47:45 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r96JlgU0026647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 6 Oct 2013 15:47:43 -0400 Received: from host2.jankratochvil.net (ovpn-116-31.ams2.redhat.com [10.36.116.31]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r96Jldvt030963 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 6 Oct 2013 15:47:41 -0400 Date: Sun, 06 Oct 2013 19:47:00 -0000 From: Jan Kratochvil To: Markus Metzger Cc: gdb-patches@sourceware.org, Christian Himpel Subject: Re: [patch v6 07/21] record-btrace: optionally indent function call history Message-ID: <20131006194738.GB28020@host2.jankratochvil.net> References: <1379676639-31802-1-git-send-email-markus.t.metzger@intel.com> <1379676639-31802-8-git-send-email-markus.t.metzger@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1379676639-31802-8-git-send-email-markus.t.metzger@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00166.txt.bz2 On Fri, 20 Sep 2013 13:30:25 +0200, Markus Metzger wrote: > --- /dev/null > +++ b/gdb/testsuite/gdb.btrace/exception.exp > @@ -0,0 +1,65 @@ > +# This testcase is part of GDB, the GNU debugger. > +# > +# Copyright 2013 Free Software Foundation, Inc. > +# > +# Contributed by Intel Corp. > +# > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 3 of the License, or > +# (at your option) any later version. > +# > +# This program is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with this program. If not, see . > + > +# check for btrace support > +if { [skip_btrace_tests] } { return -1 } > + > +# start inferior > +standard_testfile exception.cc > +if [prepare_for_testing $testfile.exp $testfile $srcfile {c++ debug}] { > + return -1 > +} > +if ![runto_main] { > + return -1 > +} > + > +# we want to see the full trace for this test > +gdb_test_no_output "set record function-call-history-size 0" > + > +# set bp > +set bp_1 [gdb_get_line_number "bp.1" $srcfile] > +set bp_2 [gdb_get_line_number "bp.2" $srcfile] > +gdb_breakpoint $bp_1 > +gdb_breakpoint $bp_2 > + > +# trace the code between thw two breakpoints s/thw/the/ > +gdb_continue_to_breakpoint "cont to bp.1" ".*$srcfile:$bp_1\r\n.*" > +gdb_test_no_output "record btrace" > +gdb_continue_to_breakpoint "cont to bp.2" ".*$srcfile:$bp_2\r\n.*" [...] > --- /dev/null > +++ b/gdb/testsuite/gdb.btrace/x86-tailcall.S > @@ -0,0 +1,279 @@ [...] > +.LASF2: > + .string "/users/mmetzger/gdb/gerrit/git/gdb/testsuite/gdb.btrace" You could replace the directory for example by (that is IIRC not correct anyway for out-of-src-tree builds but it at least finds the source for in-src-tree builds):: .string "" > +.LASF1: > + .string "x86-tailcall.c" > + .ident "GCC: (GNU) 4.4.4 20100726 (Red Hat 4.4.4-13)" > + .section .note.GNU-stack,"",@progbits Jan