X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fauxv.c;h=121a7497311349da492c559fc4994d088d0968c8;hb=79a45b7d67b37d45cdb44d3ee2761a768474dd73;hp=afc7fdd46d3c1b7c36dcf76050a9b9c0a163d8b6;hpb=7c8a8b0498cb16b1a36e3210977eae12cca98f64;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/auxv.c b/gdb/auxv.c index afc7fdd46d..121a749731 100644 --- a/gdb/auxv.c +++ b/gdb/auxv.c @@ -172,7 +172,6 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops) while (target_auxv_parse (ops, &ptr, data + len, &type, &val) > 0) { - extern int addressprint; const char *name = "???"; const char *description = ""; enum { dec, hex, str } flavor = hex; @@ -240,10 +239,14 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops) fprintf_filtered (file, "0x%s\n", paddr_nz (val)); break; case str: - if (addressprint) - fprintf_filtered (file, "0x%s", paddr_nz (val)); - val_print_string (val, -1, 1, file); - fprintf_filtered (file, "\n"); + { + struct value_print_options opts; + get_user_print_options (&opts); + if (opts.addressprint) + fprintf_filtered (file, "0x%s", paddr_nz (val)); + val_print_string (val, -1, 1, file, &opts); + fprintf_filtered (file, "\n"); + } break; } ++ents;