Cleanup value_fetch_lazy's comment and return value
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index a7bb4944f62969174402280c0cb7843dd495403b..1ad599bfa8041b777408085dfd5364bf189a7e36 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing Java values for GDB, the GNU debugger.
 
-   Copyright (C) 1997-2014 Free Software Foundation, Inc.
+   Copyright (C) 1997-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -29,8 +29,6 @@
 #include "jv-lang.h"
 #include "c-lang.h"
 #include "annotate.h"
-#include <string.h>
-
 /* Local functions */
 
 void
@@ -183,10 +181,10 @@ java_value_print (struct value *val, struct ui_file *stream,
                  set_value_offset (next_v, value_offset (next_v)
                                    + TYPE_LENGTH (el_type));
                  value_fetch_lazy (next_v);
-                 if (!(value_available_contents_eq
-                       (v, value_embedded_offset (v),
-                        next_v, value_embedded_offset (next_v),
-                        TYPE_LENGTH (el_type))))
+                 if (!value_contents_eq (v, value_embedded_offset (v),
+                                         next_v,
+                                         value_embedded_offset (next_v),
+                                         TYPE_LENGTH (el_type)))
                    break;
                }
 
@@ -393,11 +391,6 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr,
                {
                  fputs_filtered (_("<synthetic pointer>"), stream);
                }
-             else if (!value_bits_valid (val, TYPE_FIELD_BITPOS (type, i),
-                                         TYPE_FIELD_BITSIZE (type, i)))
-               {
-                 val_print_optimized_out (val, stream);
-               }
              else
                {
                  struct value_print_options opts;
This page took 0.0247 seconds and 4 git commands to generate.