diff -uprN src0/gdb/frame-unwind.c src1/gdb/frame-unwind.c --- src0/gdb/frame-unwind.c 2009-07-06 09:28:18.000000000 -0400 +++ src1/gdb/frame-unwind.c 2009-08-06 10:28:43.000000000 -0400 @@ -89,11 +89,10 @@ frame_unwind_append_unwinder (struct gdb const struct frame_unwind * frame_unwind_find_by_frame (struct frame_info *this_frame, void **this_cache) { - int i; struct gdbarch *gdbarch = get_frame_arch (this_frame); struct frame_unwind_table *table = gdbarch_data (gdbarch, frame_unwind_data); struct frame_unwind_table_entry *entry; - struct cleanup *old_cleanup; + for (entry = table->list; entry != NULL; entry = entry->next) { struct cleanup *old_cleanup; diff -uprN src0/gdb/frame.c src1/gdb/frame.c --- src0/gdb/frame.c 2009-07-06 09:28:18.000000000 -0400 +++ src1/gdb/frame.c 2009-08-06 10:28:21.000000000 -0400 @@ -1585,8 +1585,6 @@ inside_entry_func (struct frame_info *th struct frame_info * get_prev_frame (struct frame_info *this_frame) { - struct frame_info *prev_frame; - /* There is always a frame. If this assertion fails, suspect that something should be calling get_selected_frame() or get_current_frame(). */ @@ -1814,7 +1812,6 @@ get_frame_base_address (struct frame_inf CORE_ADDR get_frame_locals_address (struct frame_info *fi) { - void **cache; if (get_frame_type (fi) != NORMAL_FRAME) return 0; /* If there isn't a frame address method, find it. */ @@ -1830,7 +1827,6 @@ get_frame_locals_address (struct frame_i CORE_ADDR get_frame_args_address (struct frame_info *fi) { - void **cache; if (get_frame_type (fi) != NORMAL_FRAME) return 0; /* If there isn't a frame address method, find it. */ diff -uprN src0/gdb/trad-frame.c src1/gdb/trad-frame.c --- src0/gdb/trad-frame.c 2009-05-26 09:56:25.000000000 -0400 +++ src1/gdb/trad-frame.c 2009-08-06 10:30:56.000000000 -0400 @@ -135,7 +135,6 @@ trad_frame_get_prev_register (struct fra struct trad_frame_saved_reg this_saved_regs[], int regnum) { - struct gdbarch *gdbarch = get_frame_arch (this_frame); if (trad_frame_addr_p (this_saved_regs, regnum)) /* The register was saved in memory. */ return frame_unwind_got_memory (this_frame, regnum, diff -uprN src0/gdb/tramp-frame.c src1/gdb/tramp-frame.c --- src0/gdb/tramp-frame.c 2009-07-06 09:28:21.000000000 -0400 +++ src1/gdb/tramp-frame.c 2009-08-06 10:31:12.000000000 -0400 @@ -44,7 +44,6 @@ static struct trad_frame_cache * tramp_frame_cache (struct frame_info *this_frame, void **this_cache) { - CORE_ADDR pc = get_frame_pc (this_frame); struct tramp_frame_cache *tramp_cache = (*this_cache); if (tramp_cache->trad_cache == NULL) {