diff options
author | Tom de Vries <tdevries@suse.de> | 2023-02-20 12:20:14 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-02-20 12:20:14 +0100 |
commit | cb911672fb70233f3ef127f68fc0a43d7f339a62 (patch) | |
tree | 2233ec1e60478508cdbb7a900b198f4016c32e1f /gdb/i386-tdep.c | |
parent | 1bcaeecb7fd8a23f05033bc9a340696b685db17f (diff) | |
download | fsf-binutils-gdb-cb911672fb70233f3ef127f68fc0a43d7f339a62.zip fsf-binutils-gdb-cb911672fb70233f3ef127f68fc0a43d7f339a62.tar.gz fsf-binutils-gdb-cb911672fb70233f3ef127f68fc0a43d7f339a62.tar.bz2 |
[gdb/symtab] Factor out compunit_epilogue_unwind_valid
Factor out compunit_epilogue_unwind_valid from both
amd64_stack_frame_destroyed_p and i386_stack_frame_destroyed_p. No functional
changes.
Also add a comment in the new function about the assumption that in absence of
producer information, epilogue unwind info is invalid.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index acf22db..19358ca 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -2219,10 +2219,8 @@ static int i386_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR pc) { gdb_byte insn; - struct compunit_symtab *cust; - cust = find_pc_compunit_symtab (pc); - if (cust != NULL && cust->epilogue_unwind_valid ()) + if (compunit_epilogue_unwind_valid (find_pc_compunit_symtab (pc))) return 0; if (target_read_memory (pc, &insn, 1)) |