Rewrite gdb.asm so that it doesn't assume a C comiler (or any C
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index e19a307dac7c6de907dc93a3c95e5518812ad191..6f9273d51007e48d7a933e7897aaa5649ebe066a 100644 (file)
@@ -1,5 +1,5 @@
 /* Support for printing Java values for GDB, the GNU debugger.
-   Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright 1997-2000 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 
 /* Local functions */
 
-static void java_print_value_fields PARAMS ((struct type * type, char *valaddr, CORE_ADDR address, GDB_FILE * stream, int format, int recurse, enum val_prettyprint pretty));
+static void java_print_value_fields (struct type * type, char *valaddr,
+                                    CORE_ADDR address,
+                                    struct ui_file *stream, int format,
+                                    int recurse,
+                                    enum val_prettyprint pretty);
 
 
 int
 java_value_print (val, stream, format, pretty)
      value_ptr val;
-     GDB_FILE *stream;
+     struct ui_file *stream;
      int format;
      enum val_prettyprint pretty;
 {
@@ -126,7 +130,7 @@ java_value_print (val, stream, format, pretty)
              if (element == 0)
                fprintf_filtered (stream, "null");
              else
-               fprintf_filtered (stream, "@%x", element);
+               fprintf_filtered (stream, "@%s", paddr_nz (element));
 
              things_printed++;
              i += reps;
@@ -242,7 +246,7 @@ java_print_value_fields (type, valaddr, address, stream,
      struct type *type;
      char *valaddr;
      CORE_ADDR address;
-     GDB_FILE *stream;
+     struct ui_file *stream;
      int format;
      int recurse;
      enum val_prettyprint pretty;
@@ -450,8 +454,9 @@ java_val_print (type, valaddr, embedded_offset, address, stream, format,
                deref_ref, recurse, pretty)
      struct type *type;
      char *valaddr;
+     int embedded_offset;
      CORE_ADDR address;
-     GDB_FILE *stream;
+     struct ui_file *stream;
      int format;
      int deref_ref;
      int recurse;
This page took 0.023936 seconds and 4 git commands to generate.