Skip to content
Commit a0780848 authored by Guinevere Larsen's avatar Guinevere Larsen
Browse files

gdb: Fix printing frame when reversing out of a recursive call with clang



Commit bf2813af introduced some logic to
not refresh the step frame id if it detects that the inferior is reverse
stepping out of a recursive call, so that we would still print frame
information once the inferior stops.

However, that logic was overly specific, and wouldn't be hit for
inferiors compiled with clang because clang adds line table entries that
aren't statements, making process_event_stop_test go through a different
branch on the relevant if statement.

Fix this by not making the code that detects "reversing out of a
recursion" an else clause to the previous if, but a standalone if block.

Approved-by: default avatarKevin Buettner <kevinb@redhat.com>
parent d71c16ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment