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

* auxv.c (target_auxv_search): Delete unused variable.
	* blockframe.c (get_frame_block): Delete unused variable.
	* regcache.c (regcache_cpy): Delete unused variable.
	(regcache_cpy_no_passthrough): Delete unused variable.
	* charset.c (wchar_iterate): Delete unused variable.
	(find_charset_names): Delete unused variable.
	(_initialize_charset): Delete unused variable.
	* disasm.c (do_mixed_source_and_assembly):
	Delete unused variable.
	* source.c (set_default_source_symtab_and_line):
	Delete unused variable.
	(set_substitute_path_command): Delete unused variable.
	* value.c (preserve_values): Delete unused variable.
	(value_from_double): Delete unused variable.
This commit is contained in:
Michael Snyder 2010-05-06 18:07:08 +00:00
parent 0c4c2b4930
commit 8ea1369558
8 changed files with 18 additions and 16 deletions

View File

@ -1,3 +1,20 @@
2010-05-06 Michael Snyder <msnyder@vmware.com>
* auxv.c (target_auxv_search): Delete unused variable.
* blockframe.c (get_frame_block): Delete unused variable.
* regcache.c (regcache_cpy): Delete unused variable.
(regcache_cpy_no_passthrough): Delete unused variable.
* charset.c (wchar_iterate): Delete unused variable.
(find_charset_names): Delete unused variable.
(_initialize_charset): Delete unused variable.
* disasm.c (do_mixed_source_and_assembly):
Delete unused variable.
* source.c (set_default_source_symtab_and_line):
Delete unused variable.
(set_substitute_path_command): Delete unused variable.
* value.c (preserve_values): Delete unused variable.
(value_from_double): Delete unused variable.
2010-05-05 Michael Snyder <msnyder@vmware.com>
* psymtab.c (lookup_partial_symbol): Delete unused variable.

View File

@ -258,7 +258,6 @@ target_auxv_search (struct target_ops *ops, CORE_ADDR match, CORE_ADDR *valp)
gdb_byte *data;
LONGEST n = target_read_alloc (ops, TARGET_OBJECT_AUXV, NULL, &data);
gdb_byte *ptr = data;
int ents = 0;
if (n <= 0)
return n;

View File

@ -59,7 +59,6 @@ struct block *
get_frame_block (struct frame_info *frame, CORE_ADDR *addr_in_block)
{
const CORE_ADDR pc = get_frame_address_in_block (frame);
struct frame_info *next_frame;
struct block *bl;
int inline_count;

View File

@ -634,7 +634,6 @@ wchar_iterate (struct wchar_iterator *iter,
size_t orig_in = iter->bytes;
size_t out_avail = out_request * sizeof (gdb_wchar_t);
size_t num;
gdb_wchar_t result;
size_t r = iconv (iter->desc,
(ICONV_CONST char **) &iter->input, &iter->bytes,
@ -814,7 +813,7 @@ find_charset_names (void)
/* The size of buf is chosen arbitrarily. */
char buf[1024];
char *start, *r;
int len, keep_going;
int len;
r = fgets (buf, sizeof (buf), in);
if (!r)
@ -909,8 +908,6 @@ default_auto_wide_charset (void)
void
_initialize_charset (void)
{
struct cmd_list_element *new_cmd;
/* The first element is always "auto". */
VEC_safe_push (char_ptr, charsets, xstrdup ("auto"));
find_charset_names ();

View File

@ -180,7 +180,6 @@ do_mixed_source_and_assembly (struct gdbarch *gdbarch, struct ui_out *uiout,
int i;
int out_of_order = 0;
int next_line = 0;
CORE_ADDR pc;
int num_displayed = 0;
struct cleanup *ui_out_chain;
struct cleanup *ui_out_tuple_chain = make_cleanup (null_cleanup, 0);

View File

@ -350,9 +350,6 @@ do_cooked_read (void *src, int regnum, gdb_byte *buf)
void
regcache_cpy (struct regcache *dst, struct regcache *src)
{
int i;
gdb_byte *buf;
gdb_assert (src != NULL && dst != NULL);
gdb_assert (src->descr->gdbarch == dst->descr->gdbarch);
gdb_assert (src != dst);
@ -369,7 +366,6 @@ regcache_cpy (struct regcache *dst, struct regcache *src)
void
regcache_cpy_no_passthrough (struct regcache *dst, struct regcache *src)
{
int i;
gdb_assert (src != NULL && dst != NULL);
gdb_assert (src->descr->gdbarch == dst->descr->gdbarch);
/* NOTE: cagney/2002-05-17: Don't let the caller do a no-passthrough

View File

@ -176,8 +176,6 @@ get_current_source_symtab_and_line (void)
void
set_default_source_symtab_and_line (void)
{
struct symtab_and_line cursal;
if (!have_full_symbols () && !have_partial_symbols ())
error (_("No symbol table is loaded. Use the \"file\" command."));
@ -1874,7 +1872,6 @@ unset_substitute_path_command (char *args, int from_tty)
static void
set_substitute_path_command (char *args, int from_tty)
{
char *from_path, *to_path;
char **argv;
struct substitute_path_rule *rule;

View File

@ -1481,7 +1481,6 @@ preserve_values (struct objfile *objfile)
htab_t copied_types;
struct value_history_chunk *cur;
struct internalvar *var;
struct value *val;
int i;
/* Create the hash table. We allocate on the objfile's obstack, since
@ -2243,7 +2242,6 @@ value_from_double (struct type *type, DOUBLEST num)
struct value *val = allocate_value (type);
struct type *base_type = check_typedef (type);
enum type_code code = TYPE_CODE (base_type);
int len = TYPE_LENGTH (base_type);
if (code == TYPE_CODE_FLT)
{