Jump to content

4 posts in this topic

Recommended Posts

Posted

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?

Posted (edited)

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
Posted (edited)

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

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