Jump to content

Question of commands in debugging


Go to solution Solved by Juku,

8 posts in this topic

Recommended Posts

Posted (edited)

If you watch this tutorial

you see after setting a watchpoint in gdb he does these commands:

 

display $r0

display $r1

display $r2

display $r3

display $r4

 

What do these commands mean? And are they still necessary to hack a game in gdb/lldb? And also what would these display commands be in lldb?

 

Thanks.

@@DiDA @@shmoo @mrslater @mrphoenix

@@Amuyea @@castix

Updated by Gaius
Posted

They're not necessary but they can be useful once you've mastered IDA & GDB.

Posted

They're not necessary but they can be useful once you've mastered IDA & GDB.

they are still useful in lldb too?
Posted

If you watch this tutorial https://youtu.be/huWOxX7XxOw you see after setting a watchpoint in gdb he does these commands:

display $r0

display $r1

display $r2

display $r3

display $r4

What do these commands mean? And are they still necessary to hack a game in gdb/lldb? And also what would these display commands be in lldb?

Thanks.

@@DiDA @@shmoo @mrslater @mrphoenix

@@Amuyea @@castix

display $rx means that he is looking at what values the registers contain. You can just do i r

Posted

basicaly the display $r0 ect .....shows you the vaule of that register at every breakpoint istead of using info register everytime

Posted

basicaly the display $r0 ect .....shows you the vaule of that register at every breakpoint istead of using info register everytime

oh so they still have display commands in lldb too?
  • Solution
Posted

Each gdb command has an lldb version of it too. https://lldb.llvm.org/lldb-gdb.html

basicaly the display $r0 ect .....shows you the vaule of that register at every breakpoint istead of using info register everytime

display $rx means that he is looking at what values the registers contain. You can just do i r

thx guys

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