[lldb-dev] Disassembling with no function bounds

Zachary Turner zturner at google.com
Wed Jan 21 14:24:14 PST 2015


It looks like I just overlooked -s.

So armed with that knowledge, is there any objection to adding, say, -x,
which is more or less "continue disassembling at the last address"?

On Wed Jan 21 2015 at 2:19:38 PM <jingham at apple.com> wrote:

> Yeah, the help says:
>
>        -a <address-expression> ( --address <address-expression> )
>             Disassemble function containing this address.
>
> so it is doing what is expected.  You don't need to specify -c or -e, it
> will dump some default number of instructions.  Having it do something
> reasonable when there is no function containing that address is not totally
> unreasonable, except then -a and -s overlap in function, which is a little
> odd.
>
> Jim
>
>
> > On Jan 21, 2015, at 2:10 PM, Ed Maste <emaste at freebsd.org> wrote:
> >
> > On 21 January 2015 at 16:57, Zachary Turner <zturner at google.com> wrote:
> >>
> >> Is there any way to work around this restriction?  It seems like it
> >> shouldn't matter what the bounds of the function are, or if there's
> even a
> >> function at this address at all.  As long as there's code.
> >
> > You should be able to use a combination of -s start address / -e end
> > address / -c instruction count.
> >
> > Perhaps we could disassemble a small number of instructions starting
> > from the provided address if -a is given an address outside of a
> > function.
> > _______________________________________________
> > lldb-dev mailing list
> > lldb-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150121/dc350e5f/attachment.html>


More information about the lldb-dev mailing list