Re: Trying to use gdb on OS X

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

I can't try the test until tonight (after 4:30pm PDT), although I'm sure I'll get similar results since that was what I was seeing in gdb from the compiled code. However when typing the casts directly into gdb they worked correctly.

I don't know how/why it broke. My OS X has an older GCC (I think I posted the version number up thread).

It now seems odd to me that the casting has always worked and was never broken in other versions; you would expect to see some odd errors whenever a pointer got stored as a double and then cast back into an int.

Whoever wrote the t_math.e bit tests and used a number that was sure to be cast as a double did a good job of catching this.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu