[Bug gdb/21221] gdb hangs while stepping an empty loop

luis.machado at linaro dot org sourceware-bugzilla@sourceware.org
Thu Oct 10 10:37:00 GMT 2019


--- Comment #8 from Luis Machado <luis.machado at linaro dot org> ---
I completely agree that this is very annoying and non-intuitive.

I'm still investigating this and trying to break it down into separate cases.
Some of them are more complex to handle, while others should be simpler.

Clang does handle *some* cases better than GCC, but in others it still
generates line number transitions that will lead GDB to skip whole loops in
single-step mode.

Ideally we'd come up with a solution that handles the most common cases.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Gdb-prs mailing list