From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17259 invoked by alias); 20 Aug 2011 11:40:50 -0000 Received: (qmail 17251 invoked by uid 22791); 20 Aug 2011 11:40:49 -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 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; Sat, 20 Aug 2011 11:40:31 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7KBeUCj007490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 20 Aug 2011 07:40:30 -0400 Received: from host1.jankratochvil.net (ovpn-116-42.ams2.redhat.com [10.36.116.42]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p7KBeRZx007939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 20 Aug 2011 07:40:30 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p7KBeQJR008513; Sat, 20 Aug 2011 13:40:26 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p7KBeQxk008512; Sat, 20 Aug 2011 13:40:26 +0200 Date: Sat, 20 Aug 2011 11:40: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: <20110820114025.GA8472@host1.jankratochvil.net> References: <20110819162807.GA27393@host1.jankratochvil.net> <20110819180431.GA6279@host1.jankratochvil.net> 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/msg00093.txt.bz2 On Sat, 20 Aug 2011 05:45:01 +0200, Triple Yang wrote: > I agree with that. Since we can get line number from binary file's > section offset, and vice versa, we can skip prologue using line > number. The practical problem is that, I don't know how to implement > it, i.e. what functions should be called. Any suggestions? It is already implemented, if you just want to write a new GDB arch backend. This code in GDB is arch-independent. It would be better to give a reproducer or I do not understand the problem. Regards, Jan