Skip to content
Guest Big Announcement

How to use GDB if the address I got from gameplayer is for a float value?

Featured Replies

Hey guys,

 

When I use GDB the way I always use for integer values, I get the old value and the new value the way I expect it to be. However, with float numbers, I get the old value and the new value as a really big integer.

 

Anyone know what to do?

so if the old value is 2 the new value is 1.6375362 smth like that but its ok lol as it finds the correct offset, its ok

Edit: floats are values with points, like 1.2 or 1.2366336 or more, thats it :p

Updated by F1reCub3s

When a watchpoint activates, it breaks at the address at which its value was changed, go to that address in IDA (or "x/i address" in gdb) to view the instruction it broke at, Find out which of the registers in the instruction contain your value (use "info all-registers" to get a list of all register values, including float)

Updated by JustRick

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.