[gdb/tdep] Fix amd64/i386_stack_frame_destroyed_p
authorTom de Vries <tdevries@suse.de>
Mon, 20 Feb 2023 11:20:14 +0000 (12:20 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 20 Feb 2023 11:20:14 +0000 (12:20 +0100)
commit2f9f989c2b61d6556f01b2d80004f6abff46e4a3
treec89aa03eeb2ff494723879bdd1893d9a34ba1bd3
parentcb911672fb70233f3ef127f68fc0a43d7f339a62
[gdb/tdep] Fix amd64/i386_stack_frame_destroyed_p

The use of compunit_epilogue_unwind_valid in both amd64_stack_frame_destroyed_p
and i386_stack_frame_destroyed_p is problematic, in the sense that the
functions no longer match their documented behaviour.

Fix this by moving the use of compunit_epilogue_unwind_valid to
amd64_epilogue_frame_sniffer and i386_epilogue_frame_sniffer.  No functional
changes.
gdb/amd64-tdep.c
gdb/i386-tdep.c