aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2008-07-17 20:56:11 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2008-07-17 20:56:11 +0000
commit7c6467a4fb67c04f23f44969a4705f99809501e3 (patch)
tree7ba076a0ce1ba0119c07baf47dec116cc3f8ac6b /gdb/auxv.c
parentbecf64774cdedd594ecd268e5822bf7fc60333bc (diff)
downloadgdb-7c6467a4fb67c04f23f44969a4705f99809501e3.zip
gdb-7c6467a4fb67c04f23f44969a4705f99809501e3.tar.gz
gdb-7c6467a4fb67c04f23f44969a4705f99809501e3.tar.bz2
Fix for failing gdb.base/auxv.exp on Linux
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r--gdb/auxv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c
index 292a0d6..549b666 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -246,6 +246,8 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
break;
}
++ents;
+ if (type == AT_NULL)
+ break;
}
xfree (data);