From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96653 invoked by alias); 27 Jan 2016 20:09:31 -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 96639 invoked by uid 89); 27 Jan 2016 20:09:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Alpha, Hx-languages-length:842, letter X-HELO: ausxippc101.us.dell.com Received: from ausxippc101.us.dell.com (HELO ausxippc101.us.dell.com) (143.166.85.207) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 27 Jan 2016 20:09:29 +0000 X-LoopCount0: from 10.175.216.251 From: To: CC: , , , Subject: Re: [PATCH] Add a new format letter to dump instructions backward Date: Wed, 27 Jan 2016 20:09:00 -0000 Message-ID: References: <1095889805.138513.1453786618993.JavaMail.yahoo@mail.yahoo.com> <20160127160420.GM3338@embecosm.com> In-Reply-To: <20160127160420.GM3338@embecosm.com> Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00677.txt.bz2 > On Jan 27, 2016, at 11:04 AM, Andrew Burgess wrote: >=20 > * Toshihito Kikuchi [2016-01-26 05:36:58 +0000]: >=20 >> To answer the question from Paul, Pedro's guess is correct. I used >> symbol's line info to solve a correct frame. And yes, this feature >> does not work without debug information unfortunately. >=20 > If there's no debug information then just looking for symbols in the > same section would also be a reasonable guess. Most symbols appear > between instructions, not part way through an instruction. Yes. But if you have no symbols either, it can still work on Alpha, or on = MIPS if you disregard the Thumb instruction set, or on any number of other = RISC machines where every instruction is the same size paul