diff -uprN src0/gdb/infcall.c src1/gdb/infcall.c --- src0/gdb/infcall.c 2009-07-31 14:43:25.000000000 -0400 +++ src1/gdb/infcall.c 2009-08-06 09:10:00.000000000 -0400 @@ -440,10 +440,8 @@ call_function_by_hand (struct value *fun struct frame_info *frame; struct gdbarch *gdbarch; struct breakpoint *terminate_bp = NULL; - struct minimal_symbol *tm; ptid_t call_thread_ptid; struct gdb_exception e; - const char *name; char name_buf[RAW_FUNCTION_ADDRESS_SIZE]; if (TYPE_CODE (ftype) == TYPE_CODE_PTR) diff -uprN src0/gdb/infcmd.c src1/gdb/infcmd.c --- src0/gdb/infcmd.c 2009-07-06 09:28:19.000000000 -0400 +++ src1/gdb/infcmd.c 2009-08-06 09:10:43.000000000 -0400 @@ -812,7 +812,6 @@ static void step_1 (int skip_subroutines, int single_inst, char *count_string) { int count = 1; - struct frame_info *frame; struct cleanup *cleanups = make_cleanup (null_cleanup, NULL); int async_exec = 0; int thread = -1; @@ -1953,8 +1952,6 @@ registers_info (char *addr_exp, int fpre { struct frame_info *frame; struct gdbarch *gdbarch; - int regnum, numregs; - char *end; if (!target_has_registers) error (_("The program has no registers now.")); @@ -2315,8 +2312,6 @@ attach_command_continuation_free_args (v void attach_command (char *args, int from_tty) { - char *exec_file; - char *full_exec_path = NULL; int async_exec = 0; struct cleanup *back_to = make_cleanup (null_cleanup, NULL); diff -uprN src0/gdb/inferior.c src1/gdb/inferior.c --- src0/gdb/inferior.c 2009-07-06 09:28:19.000000000 -0400 +++ src1/gdb/inferior.c 2009-08-06 10:31:46.000000000 -0400 @@ -308,8 +308,6 @@ print_inferior (struct ui_out *uiout, in /* Compute number of inferiors we will print. */ for (inf = inferior_list; inf; inf = inf->next) { - struct cleanup *chain2; - if (requested_inferior != -1 && inf->num != requested_inferior) continue; diff -uprN src0/gdb/inflow.c src1/gdb/inflow.c --- src0/gdb/inflow.c 2009-05-26 09:56:22.000000000 -0400 +++ src1/gdb/inflow.c 2009-08-06 10:32:35.000000000 -0400 @@ -43,10 +43,6 @@ #define O_NOCTTY 0 #endif -#if defined (SIGIO) && defined (FASYNC) && defined (FD_SET) && defined (F_SETOWN) -static void handle_sigio (int); -#endif - extern void _initialize_inflow (void); static void pass_signal (int); diff -uprN src0/gdb/infrun.c src1/gdb/infrun.c --- src0/gdb/infrun.c 2009-07-31 14:43:25.000000000 -0400 +++ src1/gdb/infrun.c 2009-08-06 09:12:08.000000000 -0400 @@ -67,8 +67,6 @@ static int hook_stop_stub (void *); static int restore_selected_frame (void *); -static void build_infrun (void); - static int follow_fork (void); static void set_schedlock_func (char *args, int from_tty, @@ -465,7 +463,6 @@ follow_inferior_reset_breakpoints (void) static void follow_exec (ptid_t pid, char *execd_pathname) { - struct target_ops *tgt; struct thread_info *th = inferior_thread (); /* This is an exec event that we actually wish to pay attention to. @@ -1765,8 +1762,6 @@ struct execution_control_state int wait_some_more; }; -static void init_execution_control_state (struct execution_control_state *ecs); - static void handle_inferior_event (struct execution_control_state *ecs); static void handle_step_into_function (struct gdbarch *gdbarch, @@ -2166,15 +2161,6 @@ set_step_info (struct frame_info *frame, tp->current_line = sal.line; } -/* Prepare an execution control state for looping through a - wait_for_inferior-type loop. */ - -static void -init_execution_control_state (struct execution_control_state *ecs) -{ - ecs->random_signal = 0; -} - /* Clear context switchable stepping state. */ void @@ -4280,7 +4266,7 @@ handle_step_into_function_backward (stru struct execution_control_state *ecs) { struct symtab *s; - struct symtab_and_line stop_func_sal, sr_sal; + struct symtab_and_line stop_func_sal; s = find_pc_symtab (stop_pc); if (s && s->language != language_asm) @@ -5781,7 +5767,6 @@ _initialize_infrun (void) { int i; int numsigs; - struct cmd_list_element *c; add_info ("signals", signals_info, _("\ What debugger does when program gets various signals.\n\