[lldb-dev] [Bug 28859] New: LLDB-MI: data-disassemble command doesn't accept "$pc" as start and end address parameter

via lldb-dev lldb-dev at lists.llvm.org
Thu Aug 4 23:49:45 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28859

            Bug ID: 28859
           Summary: LLDB-MI: data-disassemble command doesn't accept "$pc"
                    as start and end address parameter
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: aetf at unlimitedcodeworks.xyz
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

-data-disassemble start-addr and end-addr parameter should accept "$pc" as
value.

Taken from the specification:

Disassemble from the current value of $pc to $pc + 20:

     (gdb)
     -data-disassemble -s $pc -e "$pc + 20" -- 0
     ^done,
     asm_insns=[
     {address="0x000107c0",func-name="main",offset="4",
     inst="mov  2, %o0"},
     {address="0x000107c4",func-name="main",offset="8",
     inst="sethi  %hi(0x11800), %o2"},
     {address="0x000107c8",func-name="main",offset="12",
     inst="or  %o2, 0x140, %o1\t! 0x11940 <_lib_version+8>"},
     {address="0x000107cc",func-name="main",offset="16",
     inst="sethi  %hi(0x11800), %o2"},
     {address="0x000107d0",func-name="main",offset="20",
     inst="or  %o2, 0x168, %o4\t! 0x11968 <_lib_version+48>"}]
     (gdb)

https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Data-Manipulation.html#GDB_002fMI-Data-Manipulation

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160805/7eab94d8/attachment.html>


More information about the lldb-dev mailing list