https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111243
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org --- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think maybe this is a debuginfo and/or gdb problem, where 'next' doesn't really do what you want, and 'finish' leaves the frame which has unpredictable results if anything has been inlined (gdb shows you're in function 'foo' but since that was actually inlined into its caller, running 'finish' returns from foo's caller not from foo). Ideally we'd keep the inlining, but improve the debug experience. Disabling inlining seems like a hack to work around the fact that gdb doesn't really do what we want.