aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-18 19:23:37 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-18 19:23:37 +0000
commit5b4ee69b43c13f5d57748af1892794fa4d7ee0c6 (patch)
tree0c0e0574108ee5c7640dc8f0a21cf2799ae3d032 /gdb/auxv.c
parente1e82ea4dca2c0ab5173de6799ffdfcb9659e7c2 (diff)
downloadgdb-5b4ee69b43c13f5d57748af1892794fa4d7ee0c6.zip
gdb-5b4ee69b43c13f5d57748af1892794fa4d7ee0c6.tar.gz
gdb-5b4ee69b43c13f5d57748af1892794fa4d7ee0c6.tar.bz2
2010-05-18 Michael Snyder <msnyder@vmware.com>
* ada-lang.c: White space. * ada-typeprint.c: White space. * ada-valprint.c: White space. * addrmap.c: White space. * auxv.c: White space. * ax-gdb.c: White space.
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r--gdb/auxv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c
index 8e9e939..ae9142a 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -240,6 +240,7 @@ target_auxv_parse (struct target_ops *ops, gdb_byte **readptr,
gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
{
struct target_ops *t;
+
for (t = ops; t != NULL; t = t->beneath)
if (t->to_auxv_parse != NULL)
return t->to_auxv_parse (t, readptr, endptr, typep, valp);
@@ -373,6 +374,7 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
case str:
{
struct value_print_options opts;
+
get_user_print_options (&opts);
if (opts.addressprint)
fprintf_filtered (file, "%s", paddress (target_gdbarch, val));
@@ -400,6 +402,7 @@ info_auxv_command (char *cmd, int from_tty)
else
{
int ents = fprint_target_auxv (gdb_stdout, &current_target);
+
if (ents < 0)
error (_("No auxiliary vector found, or failed reading it."));
else if (ents == 0)