aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-28 20:34:18 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-28 20:34:18 +0000
commit57cdecd25d2a9ed3a4fc8690df718d44227f5e3d (patch)
treeaea5bb60786ab93f4fca55586b8c893492a6e572
parent69efdb45550044f51beedb5cd16ddc716c2218ae (diff)
downloadfsf-binutils-gdb-57cdecd25d2a9ed3a4fc8690df718d44227f5e3d.zip
fsf-binutils-gdb-57cdecd25d2a9ed3a4fc8690df718d44227f5e3d.tar.gz
fsf-binutils-gdb-57cdecd25d2a9ed3a4fc8690df718d44227f5e3d.tar.bz2
2007-08-28 Michael Snyder <msnyder@access-company.com>
* mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to check for null before calling check_typedef.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/mi/mi-cmd-var.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 413fe40..3b97a5f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2007-08-28 Michael Snyder <msnyder@access-company.com>
+ * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
+ check for null before calling check_typedef.
+
* NEWS: Mention Coverity bug fixes.
2007-08-27 Markus Deuling <deuling@de.ibm.com>
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c
index 4fc0c3f..38213e6 100644
--- a/gdb/mi/mi-cmd-var.c
+++ b/gdb/mi/mi-cmd-var.c
@@ -325,8 +325,7 @@ Must be: 0 or \"%s\", 1 or \"%s\", 2 or \"%s\""),
static int
mi_print_value_p (struct type *type, enum print_values print_values)
{
- if (type != NULL)
- type = check_typedef (type);
+ type = check_typedef (type);
if (print_values == PRINT_NO_VALUES)
return 0;