Re: Trying to use gdb on OS X

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu