diff options
-rw-r--r-- | gdb/ChangeLog | 12 | ||||
-rw-r--r-- | gdb/frame.c | 4 | ||||
-rw-r--r-- | gdb/mdebugread.c | 1 | ||||
-rw-r--r-- | gdb/serial.c | 1 | ||||
-rw-r--r-- | gdb/top.c | 3 | ||||
-rw-r--r-- | gdb/utils.c | 5 |
6 files changed, 12 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 379e69b..497064f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,17 @@ 2010-05-06 Michael Snyder <msnyder@vmware.com> + * serial.c (serial_for_fd): Delete unused variable. + * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. + * top.c (execute_command): Delete unused variable. + (init_main): Delete unused variable. + * utils.c (do_fclose_cleanup): Delete unused variable. + (do_all_inferior_continuations): Delete unused variable. + (initialize_utils): Delete unused variable. + (internal_problem_mode): Delete unused global. + * frame.c (get_prev_frame): Delete unused global. + (get_frame_locals_address): Delete unused global. + (get_frame_args_address): Delete unused global. + * p-typeprint.c (pascal_type_print_base): Delete unused variable. (pascal_type_print_varspec_prefix): Delete unused variable. * f-typeprint.c (f_type_print_base): Delete unused variable. diff --git a/gdb/frame.c b/gdb/frame.c index 0b0c5b4..e320e4f 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1677,8 +1677,6 @@ inside_entry_func (struct frame_info *this_frame) 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(). */ @@ -1906,7 +1904,6 @@ get_frame_base_address (struct frame_info *fi) 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. */ @@ -1922,7 +1919,6 @@ get_frame_locals_address (struct frame_info *fi) 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 --git a/gdb/mdebugread.c b/gdb/mdebugread.c index fbc7766..20bf3a3 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -4124,7 +4124,6 @@ psymtab_to_symtab_1 (struct partial_symtab *pst, char *filename) { /* This symbol table contains ordinary ecoff entries. */ - int f_max; int maxlines; EXTR *ext_ptr; diff --git a/gdb/serial.c b/gdb/serial.c index 305ac33..ea437a1 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -247,7 +247,6 @@ struct serial * serial_for_fd (int fd) { struct serial *scb; - struct serial_ops *ops; for (scb = scb_base; scb; scb = scb->next) if (scb->fd == fd) @@ -360,7 +360,6 @@ execute_command (char *p, int from_tty) #ifdef HAVE_SBRK long space_at_cmd_start = 0; #endif - extern int display_time; extern int display_space; if (target_can_async_p ()) @@ -1516,8 +1515,6 @@ Notification of completion for asynchronous execution commands is %s.\n"), static void init_main (void) { - struct cmd_list_element *c; - /* initialize the prompt stack to a simple "(gdb) " prompt or to whatever the DEFAULT_PROMPT is. */ the_prompts.top = 0; diff --git a/gdb/utils.c b/gdb/utils.c index 875faaf..9afb77c 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -266,7 +266,6 @@ make_cleanup_close (int fd) static void do_fclose_cleanup (void *arg) { - FILE *file = arg; fclose (arg); } @@ -553,7 +552,6 @@ add_inferior_continuation (void (*continuation_hook) (void *), void *args, void do_all_inferior_continuations (void) { - struct cleanup *old_chain; struct cleanup *as_cleanup; struct inferior *inf = current_inferior (); @@ -899,7 +897,6 @@ static const char *internal_problem_modes[] = internal_problem_no, NULL }; -static const char *internal_problem_mode = internal_problem_ask; /* Print a message reporting an internal error/warning. Ask the user if they want to continue, dump core, or just exit. Return @@ -2823,8 +2820,6 @@ show_debug_timestamp (struct ui_file *file, int from_tty, void initialize_utils (void) { - struct cmd_list_element *c; - add_setshow_uinteger_cmd ("width", class_support, &chars_per_line, _("\ Set number of characters gdb thinks are in a line."), _("\ Show number of characters gdb thinks are in a line."), NULL, |