X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2For1k-tdep.c;h=fdeab815a10c0ee83e54e610bcae28cbc2e7c13a;hb=d3ecddab5fc036fb57588a9bfff73575dc419052;hp=9140ca2aabe05535e020007294351d7377b78670;hpb=42a4f53d2bf8938c2aeda9f52be7a20534b214a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/or1k-tdep.c b/gdb/or1k-tdep.c index 9140ca2aab..fdeab815a1 100644 --- a/gdb/or1k-tdep.c +++ b/gdb/or1k-tdep.c @@ -33,7 +33,6 @@ #include "block.h" #include "reggroups.h" #include "arch-utils.h" -#include "frame.h" #include "frame-unwind.h" #include "frame-base.h" #include "dwarf2-frame.h" @@ -51,7 +50,7 @@ /* Global debug flag. */ -static int or1k_debug = 0; +static bool or1k_debug = false; static void show_or1k_debug (struct ui_file *file, int from_tty, @@ -790,14 +789,6 @@ or1k_push_dummy_call (struct gdbarch *gdbarch, struct value *function, return sp; } -/* Implement the dummy_id gdbarch method. */ - -static struct frame_id -or1k_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame) -{ - return frame_id_build (get_frame_sp (this_frame), - get_frame_pc (this_frame)); -} /* Support functions for frame handling. */ @@ -833,7 +824,7 @@ or1k_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame) l.sw lr_loc(r1),r9 # Link (return) address - The link register is usally saved at fp_loc - 4. It may not be saved at + The link register is usually saved at fp_loc - 4. It may not be saved at all in a leaf function. l.sw reg_loc(r1),ry # Save any callee saved regs @@ -1185,7 +1176,6 @@ or1k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_call_dummy_location (gdbarch, ON_STACK); set_gdbarch_push_dummy_code (gdbarch, or1k_push_dummy_code); set_gdbarch_push_dummy_call (gdbarch, or1k_push_dummy_call); - set_gdbarch_dummy_id (gdbarch, or1k_dummy_id); /* Frame unwinders. Use DWARF debug info if available, otherwise use our own unwinder. */