2009-05-27 Tom Tromey <tromey@redhat.com>
[deliverable/binutils-gdb.git] / gdb / auxv.c
index 2c42529685e40633bd63acd1e3ba556145e2f377..3a51ec58ce916ac6b49bede473e66aca128da5da 100644 (file)
@@ -79,7 +79,7 @@ procfs_xfer_auxv (struct target_ops *ops,
    Return 0 if *READPTR is already at the end of the buffer.
    Return -1 if there is insufficient buffer for a whole entry.
    Return 1 if an entry was read into *TYPEP and *VALP.  */
-int
+static int
 default_auxv_parse (struct target_ops *ops, gdb_byte **readptr,
                   gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
 {
@@ -205,6 +205,7 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
          TAG (AT_UCACHEBSIZE, _("Unified cache block size"), dec);
          TAG (AT_IGNOREPPC, _("Entry should be ignored"), dec);
          TAG (AT_BASE_PLATFORM, _("String identifying base platform"), str);
+         TAG (AT_RANDOM, _("Address of 16 random bytes"), hex);
          TAG (AT_EXECFN, _("File name of executable"), str);
          TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), dec);
          TAG (AT_SYSINFO, _("Special system info/entry points"), hex);
@@ -247,7 +248,8 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
            get_user_print_options (&opts);
            if (opts.addressprint)
              fprintf_filtered (file, "0x%s", paddr_nz (val));
-           val_print_string (val, -1, 1, file, &opts);
+           val_print_string (builtin_type (target_gdbarch)->builtin_char,
+                             val, -1, file, &opts);
            fprintf_filtered (file, "\n");
          }
          break;
This page took 0.024714 seconds and 4 git commands to generate.