Re: Trying to use gdb on OS X
- Posted by jimcbrown (admin) Jun 09, 2013
- 3192 views
jaygade said...
It's funny because the cast worked in gdb, just not in the code generated by gcc.
That is odd.
jaygade said...
Okay, I'll undo my code and try to add a #ifdef EOSX to the existing #ifdef ARM or something and try that.
Well, we know that your code works. Maybe the right thing to do is to add your code around an #ifdef EOSX.
jaygade said...
Wait a minute -- can't we cast to long and then to unsigned long? It's the cast of (-1) to unsigned long which is implementation defined right?
Idea which might be portable: in Dand_bits, cast to long, then in and_bits cast to unsigned long.
Perhaps, but so is any bitwise operation involving more than 32bits according to the other thread.