aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-07 00:01:31 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-07 00:01:31 +0000
commit34fa1d9dd20c6ef924f0f935a6325a1873a0ecb5 (patch)
tree3c561b567756c505a7ee442c4bfa65264b65a4c4 /gdb
parenta364cec0078fdc25f3e9fc1f896d62fa72714a30 (diff)
downloadgdb-34fa1d9dd20c6ef924f0f935a6325a1873a0ecb5.zip
gdb-34fa1d9dd20c6ef924f0f935a6325a1873a0ecb5.tar.gz
gdb-34fa1d9dd20c6ef924f0f935a6325a1873a0ecb5.tar.bz2
2010-05-06 Michael Snyder <msnyder@vmware.com>
* ui-out.c (ui_out_field_int): Delete unused variable. (ui_out_field_fmt_int): Delete unused variable. * varobj.c (varobj_list_children): Delete unused variable. (varobj_set_value): Delete unused variable. (install_new_value_visualizer): Delete unused variable. (varobj_set_visualizer): Delete unused variable. (varobj_update): Delete unused variable. (varobj_editable_p): Delete unused variable. (c_value_of_root): Delete unused variable. (cplus_describe_child): Delete unused variable.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog11
-rw-r--r--gdb/ui-out.c2
-rw-r--r--gdb/varobj.c17
3 files changed, 13 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 828bd57..0e930b7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,16 @@
2010-05-06 Michael Snyder <msnyder@vmware.com>
+ * ui-out.c (ui_out_field_int): Delete unused variable.
+ (ui_out_field_fmt_int): Delete unused variable.
+ * varobj.c (varobj_list_children): Delete unused variable.
+ (varobj_set_value): Delete unused variable.
+ (install_new_value_visualizer): Delete unused variable.
+ (varobj_set_visualizer): Delete unused variable.
+ (varobj_update): Delete unused variable.
+ (varobj_editable_p): Delete unused variable.
+ (c_value_of_root): Delete unused variable.
+ (cplus_describe_child): Delete unused variable.
+
* ada-lang.c (add_defn_to_vec): Delete unused variable.
(decode_constrained_packed_array_type): Delete unused variable.
(add_defn_to_vec): Delete unused variable.
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 85dc601..ebb312a 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -458,7 +458,6 @@ ui_out_field_int (struct ui_out *uiout,
int fldno;
int width;
int align;
- struct ui_out_level *current = current_level (uiout);
verify_field (uiout, &fldno, &width, &align);
@@ -475,7 +474,6 @@ ui_out_field_fmt_int (struct ui_out *uiout,
int fldno;
int width;
int align;
- struct ui_out_level *current = current_level (uiout);
verify_field (uiout, &fldno, &width, &align);
diff --git a/gdb/varobj.c b/gdb/varobj.c
index c4d02c9..a6e9df3 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1116,7 +1116,6 @@ varobj_get_num_children (struct varobj *var)
VEC (varobj_p)*
varobj_list_children (struct varobj *var, int *from, int *to)
{
- struct varobj *child;
char *name;
int i, children_changed;
@@ -1263,8 +1262,6 @@ int
varobj_set_value (struct varobj *var, char *expression)
{
struct value *val;
- int offset = 0;
- int error = 0;
/* The argument "expression" contains the variable's new value.
We need to first construct a legal expression for this -- ugh! */
@@ -1273,7 +1270,6 @@ varobj_set_value (struct varobj *var, char *expression)
struct value *value;
int saved_input_radix = input_radix;
char *s = expression;
- int i;
gdb_assert (varobj_editable_p (var));
@@ -1413,7 +1409,6 @@ install_new_value_visualizer (struct varobj *var)
if (var->constructor != Py_None && var->value)
{
struct cleanup *cleanup;
- PyObject *pretty_printer = NULL;
cleanup = varobj_ensure_python_env (var);
@@ -1633,8 +1628,8 @@ void
varobj_set_visualizer (struct varobj *var, const char *visualizer)
{
#if HAVE_PYTHON
- PyObject *mainmod, *globals, *pretty_printer, *constructor;
- struct cleanup *back_to, *value;
+ PyObject *mainmod, *globals, *constructor;
+ struct cleanup *back_to;
back_to = varobj_ensure_python_env (var);
@@ -1684,14 +1679,9 @@ VEC(varobj_update_result) *varobj_update (struct varobj **varp, int explicit)
int changed = 0;
int type_changed = 0;
int i;
- int vleft;
- struct varobj *v;
- struct varobj **cv;
- struct varobj **templist = NULL;
struct value *new;
VEC (varobj_update_result) *stack = NULL;
VEC (varobj_update_result) *result = NULL;
- struct frame_info *fi;
/* Frozen means frozen -- we don't check for any change in
this varobj, including its going out of scope, or
@@ -2571,7 +2561,6 @@ int
varobj_editable_p (struct varobj *var)
{
struct type *type;
- struct value *value;
if (!(var->root->is_valid && var->value && VALUE_LVAL (var->value)))
return 0;
@@ -2948,7 +2937,6 @@ c_value_of_root (struct varobj **var_handle)
{
struct value *new_val = NULL;
struct varobj *var = *var_handle;
- struct frame_info *fi;
int within_scope = 0;
struct cleanup *back_to;
@@ -3194,7 +3182,6 @@ cplus_describe_child (struct varobj *parent, int index,
char **cname, struct value **cvalue, struct type **ctype,
char **cfull_expression)
{
- char *name = NULL;
struct value *value;
struct type *type;
int was_ptr;