From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15551 invoked by alias); 19 Aug 2011 16:28:31 -0000 Received: (qmail 15532 invoked by uid 22791); 19 Aug 2011 16:28:29 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_GD 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; Fri, 19 Aug 2011 16:28:12 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7JGSBQC030096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 19 Aug 2011 12:28:12 -0400 Received: from host1.jankratochvil.net (ovpn-116-42.ams2.redhat.com [10.36.116.42]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7JGS9GV013765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 19 Aug 2011 12:28:11 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p7JGS8bT029130; Fri, 19 Aug 2011 18:28:08 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p7JGS8Ma029126; Fri, 19 Aug 2011 18:28:08 +0200 Date: Fri, 19 Aug 2011 16:28:00 -0000 From: Jan Kratochvil To: Triple Yang Cc: gdb@sourceware.org Subject: Re: How to skip function prologues with stabs debug infomation? Message-ID: <20110819162807.GA27393@host1.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00087.txt.bz2 On Fri, 19 Aug 2011 18:08:54 +0200, Triple Yang wrote: > is there any chance that we use symbol and line (sal) to skip function > prologues with stabs debug infomation? > And if not, why? GDB does, why not? The prologue skipping processes already decoded debug info, no matter if it is DWARF or STABS. gcc -Wall Breakpoint 1 at 0x400478 gcc -gstabs Temporary breakpoint 1 at 0x40047c: file 24.c, line 3. (gdb) p/x $pc $1 = 0x40047c gcc -gdwarf-3 Temporary breakpoint 1 at 0x40047c: file 24.c, line 3. Sure STABS is discouraged. Regards, Jan