https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95360
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Yibiao Yang from comment #0) > As showed, Line 6 is hit first and then hit Line 7 with stepi. > However, when using step, gdb is first hit Line 7 and then hit Line 6. > This is an inconsistent behaviors between stepi and step Why is that a bug? Why is it a GCC bug?