SOOOOO
turns out that gdb convenience variables are 32 bits wide, and they'll just silently downconvert your 64 bit variables
EXCITING!
#LearnedThisTheHardWay
-
-
3/ > p/x (((uint64_t) 1) << 60) 0x1000000000000000 > p sizeof(((uint64_t) 1) << 60) 8
Show this thread -
4/ the problem is that when you use "1" gdb puts that in a 4 byte int, and then when you << 60, it doesn't do magic this is ...reasonable
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.