diff options
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 0c7f389..57de083 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -175,7 +175,7 @@ rs6000_init_extra_frame_info (int fromleaf, struct frame_info *fi) /* and this is a special signal frame. */ /* (fi->pc will be some low address in the kernel, */ /* to which the signal handler returns). */ - fi->signal_handler_caller = 1; + deprecated_set_frame_type (fi, SIGTRAMP_FRAME); } /* Put here the code to store, into a struct frame_saved_regs, @@ -1477,7 +1477,7 @@ rs6000_frameless_function_invocation (struct frame_info *fi) /* Don't even think about framelessness except on the innermost frame or if the function was interrupted by a signal. */ - if (fi->next != NULL && !fi->next->signal_handler_caller) + if (fi->next != NULL && !(get_frame_type (fi->next) == SIGTRAMP_FRAME)) return 0; func_start = get_pc_function_start (fi->pc); @@ -1511,7 +1511,7 @@ rs6000_frame_saved_pc (struct frame_info *fi) struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); int wordsize = tdep->wordsize; - if (fi->signal_handler_caller) + if ((get_frame_type (fi) == SIGTRAMP_FRAME)) return read_memory_addr (fi->frame + SIG_FRAME_PC_OFFSET, wordsize); if (PC_IN_CALL_DUMMY (fi->pc, fi->frame, fi->frame)) @@ -1528,7 +1528,7 @@ rs6000_frame_saved_pc (struct frame_info *fi) if (fdata.lr_offset == 0 && fi->next != NULL) { - if (fi->next->signal_handler_caller) + if ((get_frame_type (fi->next) == SIGTRAMP_FRAME)) return read_memory_addr (fi->next->frame + SIG_FRAME_LR_OFFSET, wordsize); else if (PC_IN_CALL_DUMMY (get_next_frame (fi)->pc, 0, 0)) @@ -1753,11 +1753,11 @@ rs6000_frame_chain (struct frame_info *thisframe) thisframe->pc == entry_point_address ()) return 0; - if (thisframe->signal_handler_caller) + if ((get_frame_type (thisframe) == SIGTRAMP_FRAME)) fp = read_memory_addr (thisframe->frame + SIG_FRAME_FP_OFFSET, wordsize); else if (thisframe->next != NULL - && thisframe->next->signal_handler_caller + && (get_frame_type (thisframe->next) == SIGTRAMP_FRAME) && FRAMELESS_FUNCTION_INVOCATION (thisframe)) /* A frameless function interrupted by a signal did not change the frame pointer. */ |