diff options
Diffstat (limited to 'gdb/i386obsd-tdep.c')
-rw-r--r-- | gdb/i386obsd-tdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/i386obsd-tdep.c b/gdb/i386obsd-tdep.c index c3643c7..38058bf 100644 --- a/gdb/i386obsd-tdep.c +++ b/gdb/i386obsd-tdep.c @@ -353,7 +353,9 @@ i386obsd_trapframe_cache(struct frame_info *next_frame, void **this_cache) cache = trad_frame_cache_zalloc (next_frame); *this_cache = cache; - func = frame_func_unwind (next_frame); + /* NORMAL_FRAME matches the type in i386obsd_trapframe_unwind, but + SIGTRAMP_FRAME might be more appropriate. */ + func = frame_func_unwind (next_frame, NORMAL_FRAME); sp = frame_unwind_register_unsigned (next_frame, I386_ESP_REGNUM); find_pc_partial_function (func, &name, NULL, NULL); |