[binutils-gdb] Remove variable_default_display
Tom Tromey
tromey@sourceware.org
Thu Sep 7 20:06:10 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=78dfcce3174dbb9bd9d3a5898e57a9019dcc38d9
commit 78dfcce3174dbb9bd9d3a5898e57a9019dcc38d9
Author: Tom Tromey <tromey@adacore.com>
Date: Thu Aug 31 12:12:12 2023 -0600
Remove variable_default_display
variable_default_display has a single caller now, so remove it.
Reviewed-by: Keith Seitz <keiths@redhat.com>
Diff:
---
gdb/varobj.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 760809c6f51..3ae8d728e82 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -164,8 +164,6 @@ create_child_with_value (struct varobj *parent, int index,
/* Utility routines */
-static enum varobj_display_formats variable_default_display (struct varobj *);
-
static bool update_type_if_necessary (struct varobj *var,
struct value *new_value);
@@ -336,7 +334,7 @@ varobj_create (const char *objname,
return NULL;
}
- var->format = variable_default_display (var.get ());
+ var->format = FORMAT_NATURAL;
var->root->valid_block =
var->root->floating ? NULL : tracker.block ();
var->root->global
@@ -1871,14 +1869,6 @@ varobj_get_value_type (const struct varobj *var)
return type;
}
-/* What is the default display for this variable? We assume that
- everything is "natural". Any exceptions? */
-static enum varobj_display_formats
-variable_default_display (struct varobj *var)
-{
- return FORMAT_NATURAL;
-}
-
/*
* Language-dependencies
*/
More information about the Gdb-cvs
mailing list