Re:The Return of the Frame Pointers
by POVKING_89 on Sunday March 17, 2024 @02:26PM
(#39736685)
sounds cool
Re:The Return of the Frame Pointers
by POVKING_89 on Sunday March 17, 2024 @02:28PM
(#39736722)
Um, for some reason my account has instead instantly logged me in to someone else's. I guess I hacked them, or google made me
Re:The Return of the Frame Pointers
by nextaccountic on Sunday March 17, 2024 @08:14PM
(#39739257)
Didn't you know about -fno-omit-frame-pointer?
Perhaps they were talking about libraries they didn’t compile, and with languages with callbacks this can be a real problem.
During my first two years in college, if one of our programs did something funny, I would attach gdb and see what was happening at assembly level. I got used to "walking the stack" manually, though the debugger often helped a lot. Happy times, until all of the sudden, "-fomit-frame-pointer" was all the rage, and stack traces stopped making sense. Just like that, debugging that segfault or illegal instruction became exponentially harder. A short time later, I started using Python for almost everything to avoid broken debugging sessions. So, I lost an order of magnitude or two with "-fomit-frame-pointer". But learning Python served me well for other adventures.