Jump to content

how use lldb command


Go to solution Solved by Rook,

6 posts in this topic

Recommended Posts

Posted

GDB                                         =   lldb

 

watch *0xaddress                    =  w s e -- 0xaddress

&

b *0xaddress                            = ??

&

display/i $pc                            = ??   

&

set *0xaddress=0xaddress      = ??

&

set $r1=999                            = ??

&

i s                                           = ??

 

and ++

                          

  • Solution
Posted

Some popular lldb commands compared with gdb:
http://lldb.llvm.org/lldb-gdb.html
 
GDB                                           LLDB
i r $pc                                         register read $pc or reg re $pc
break *0xaddress                       b s -a 0xaddress
watch  0xaddress                       w s e -- 0xaddress      
x/dw 0x111                                 x/dw 0x111        or memory read -s 4 0x1111 or mem re -s 4 0x1111     4 means 4 byte & -s = size
x/i 0x11111                                 ?x/i 0x11111
set *0x1111=0x11111                 memory write -s 4 0x1111 0x1111    or mem wr -s 0x1111 0x1111
set $r1=0x1                                 register write $r1 0x1

Posted

 

Some popular lldb commands compared with gdb:

http://lldb.llvm.org/lldb-gdb.html

 

GDB                                           LLDB

i r $pc                                         register read $pc or reg re $pc

break *0xaddress                       b s -a 0xaddress

watch  0xaddress                       w s e -- 0xaddress      

x/dw 0x111                                 x/dw 0x111        or memory read -s 4 0x1111 or mem re -s 4 0x1111     4 means 4 byte & -s = size

x/i 0x11111                                 ?x/i 0x11111

set *0x1111=0x11111                 memory write -s 4 0x1111 0x1111    or mem wr -s 0x1111 0x1111

set $r1=0x1                                 register write $r1 0x1

 

If the health joint between me and him . i use in gdb I S or backtrace ... in lldb how !!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines