Skip to content
Guest Big Announcement

Can't set watchpoint in gdb

Featured Replies

I'm trying to set a watchpoint on ammo in gdb, when the address changes nothing happens in gdb... 

 

http://puu.sh/qAYCV/ce49804a6a.png is all that shows up in gdb when I shoot.. the address is for the ammo in the mag and not the reserve.. 

 

idk if my setup is wrong or what.

 

Running iphone 6 on iOS 9.0.2.. thanks for any help in advance, and sorry if I messed up writing this it's 9:40 am where I am and I haven't slept.

Solved by 0xygen

  • Solution

Bro ,  before continuing (typing c) -- you set watchpoints

 

So when the gdb loads fully,

 

just set watchpoint (watch *0xOFFSET)

 

then type c

att BINARYNAME

 

watch *0xOFFSET

 

c

 

You watch the offset before you continue
Same goes for setting a breakpoing and setting a value to an offset

I'm trying to set a watchpoint on ammo in gdb, when the address changes nothing happens in gdb...

 

http://puu.sh/qAYCV/ce49804a6a.png is all that shows up in gdb when I shoot.. the address is for the ammo in the mag and not the reserve..

 

idk if my setup is wrong or what.

 

Running iphone 6 on iOS 9.0.2.. thanks for any help in advance, and sorry if I messed up writing this it's 9:40 am where I am and I haven't slept.

Don't even try to use GDB for watchpoints, they won't hit. Use LLDB, theres many tutorials here on setting it up

 

I recognize you from ic :p

Updated by Guest

  • Author

att BINARYNAME

 

watch *0xOFFSET

 

c

 

You watch the offset before you continue

Same goes for setting a breakpoing and setting a value to an offset

 

 

Bro ,  before continuing (typing c) -- you set watchpoints

 

So when the gdb loads fully,

 

just set watchpoint (watch *0xOFFSET)

 

then type c

I did type c after entering the watchpoint.. it wouldn't freeze my game though.. gonna try setting up lldb

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.