2010-05-06 Michael Snyder <msnyder@vmware.com>

* linespec.c (decode_compound): Delete unused variable.
	* dictionary.c (iterator_next_hashed): Delete unused variable.
	* infcall.c (call_function_by_hand): Delete unused variable.
	* infcmd.c (step_1): Delete unused variable.
	(registers_info): Delete unused variable.
	(attach_command): Delete unused variable.
	* infrun.c (follow_exec): Delete unused variable.
	(handle_step_into_function_backwards): Delete unused variable.
	(_initialize_infrun): Delete unused variable.
	* stack.c (parse_frame_specification_1): Delete unused variable.
	(frame_info): Delete unused variable.
	(backtrace_command_1): Delete unused variable.
	(catch_info): Delete unused variable.
This commit is contained in:
Michael Snyder 2010-05-06 19:14:09 +00:00
parent 8f78b329f0
commit 167e43849e
7 changed files with 16 additions and 20 deletions

View file

@ -1,5 +1,19 @@
2010-05-06 Michael Snyder <msnyder@vmware.com>
* linespec.c (decode_compound): Delete unused variable.
* dictionary.c (iterator_next_hashed): Delete unused variable.
* infcall.c (call_function_by_hand): Delete unused variable.
* infcmd.c (step_1): Delete unused variable.
(registers_info): Delete unused variable.
(attach_command): Delete unused variable.
* infrun.c (follow_exec): Delete unused variable.
(handle_step_into_function_backwards): Delete unused variable.
(_initialize_infrun): Delete unused variable.
* stack.c (parse_frame_specification_1): Delete unused variable.
(frame_info): Delete unused variable.
(backtrace_command_1): Delete unused variable.
(catch_info): Delete unused variable.
* eval.c (evaluate_subexp_standard): Delete unused variable.
* valops.c (value_cast_pointers): Delete unused variable.
(value_dynamic_cast): Delete unused variable.

View file

@ -578,7 +578,6 @@ iterator_first_hashed (const struct dictionary *dict,
static struct symbol *
iterator_next_hashed (struct dict_iterator *iterator)
{
const struct dictionary *dict = DICT_ITERATOR_DICT (iterator);
struct symbol *next;
next = DICT_ITERATOR_CURRENT (iterator)->hash_next;

View file

@ -450,7 +450,6 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
struct cleanup *terminate_bp_cleanup;
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)

View file

@ -832,7 +832,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;
@ -1994,8 +1993,6 @@ registers_info (char *addr_exp, int fpregs)
{
struct frame_info *frame;
struct gdbarch *gdbarch;
int regnum, numregs;
char *end;
if (!target_has_registers)
error (_("The program has no registers now."));
@ -2356,8 +2353,6 @@ attach_command_continuation_free_args (void *args)
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);

View file

@ -650,7 +650,6 @@ show_follow_exec_mode_string (struct ui_file *file, int from_tty,
static void
follow_exec (ptid_t pid, char *execd_pathname)
{
struct target_ops *tgt;
struct thread_info *th = inferior_thread ();
struct inferior *inf = current_inferior ();
@ -726,7 +725,6 @@ follow_exec (ptid_t pid, char *execd_pathname)
if (follow_exec_mode_string == follow_exec_mode_new)
{
struct program_space *pspace;
struct inferior *new_inf;
/* The user wants to keep the old inferior and program spaces
around. Create a new fresh one, and switch to it. */
@ -4884,7 +4882,7 @@ handle_step_into_function_backward (struct gdbarch *gdbarch,
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)
@ -6438,7 +6436,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\

View file

@ -1209,7 +1209,6 @@ decode_compound (char **argptr, int funfirstline, char ***canonical,
struct symbol *sym;
char *copy;
struct symbol *sym_class;
struct symbol **sym_arr;
struct type *t;
char *saved_java_argptr = NULL;

View file

@ -865,9 +865,6 @@ parse_frame_specification_1 (const char *frame_exp, const char *message,
numargs = 0;
else
{
char *addr_string;
struct cleanup *tmp_cleanup;
numargs = 0;
while (1)
{
@ -994,7 +991,7 @@ frame_info (char *addr_exp, int from_tty)
struct symbol *func;
struct symtab *s;
struct frame_info *calling_frame_info;
int i, count, numregs;
int numregs;
char *funname = 0;
enum language funlang = language_unknown;
const char *pc_regname;
@ -1314,8 +1311,6 @@ backtrace_command_1 (char *count_exp, int show_locals, int from_tty)
if (info_verbose)
{
struct partial_symtab *ps;
/* Read in symbols for all of the frames. Need to do this in a
separate pass so that "Reading in symbols for xxx" messages
don't screw up the appearance of the backtrace. Also if
@ -1693,8 +1688,6 @@ locals_info (char *args, int from_tty)
static void
catch_info (char *ignore, int from_tty)
{
struct symtab_and_line *sal;
/* Assume g++ compiled code; old GDB 4.16 behaviour. */
print_frame_label_vars (get_selected_frame (_("No frame selected.")),
0, gdb_stdout);