gdb jumps previous lines after finish main
问题 I am trying to figure out why gdb is not behaving as expected. Not sure what triggered this. After seeing this problem, I wrote a minimal version of the main function. It finished the last line and exited properly. After adding one more function, the jumping came back. Even after commenting out the added line the jumping back does not go away. I am not sure this is related the the linking to my own library even after commenting out most of the code (not a single line reference my own library)