Skip to content
Guest Big Announcement

Question of commands in debugging

Featured Replies

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

Solved by Juku

  • Author

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

they are still useful in lldb too?

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

  • Author

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?
  • Author
  • Solution

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.