RE: [patch v4 01/13] disas: add precise instructions flag

Metzger, Markus T
2012-11-27T17:26:26Z

> -----Original Message-----
> From: Pedro Alves [mailto:palves@redhat.com]
> Sent: Tuesday, November 27, 2012 5:49 PM
> To: Metzger, Markus T
> Cc: gdb-patches@sourceware.org; markus.t.metzger@gmail.com; jan.kratochvil@redhat.com; palves@redhat.com;
> tromey@redhat.com; kettenis@gnu.org
> Subject: Re: [patch v4 01/13] disas: add precise instructions flag
>
> On 11/27/2012 10:48 AM, markus.t.metzger@intel.com wrote:
> > From: Markus Metzger <markus.t.metzger@intel.com>
> >
> > When disassembling an address range with interleaved sources,
>
> What you mean by interleaved? "disasm /m" ?

Yes.

> > the addresses that
> > are being disassembled may not exactly match the specified range.
>
> Is this another symptom of the issue that "disasm /m" sorts by
> line number, rather than the much more reasonable sort-by-address,
> which is IIRC what objdump does too?

Yes. I didn't want to go that far.

The patch is incomplete. It merely truncates the first and last block that gdb prints. If you wanted to change the behavior of "disasm /m", anyway, we can discard this patch. Sort-by-address is exactly what I'm looking for. Is somebody already working on this?

Regards,
Markus.
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Peter Gleissner, Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052