Re: [PATCH] Add a new format letter to dump instructions backward

Paul_Koning
2016-01-27T20:09:31Z

> On Jan 27, 2016, at 11:04 AM, Andrew Burgess <andrew.burgess@embecosm.com> wrote:
>
> * Toshihito Kikuchi <k.toshihito@yahoo.de> [2016-01-26 05:36:58 +0000]:
>
>> 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.
>
> 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