summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-09-16 20:17:49 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-09-16 20:17:49 +0000
commit75f8852417925f625b5a116747ea079e79926c79 (patch)
treece8fb31f83459ba00bf172a9602ed10aad32e896 /gnu/usr.bin/binutils/gdb
parentfaff50d1f20f5df15ff00d40a9873bbd1de59bde (diff)
Terminate printing of auxilliary vector upon reaching the first AT_NULL.
Diffstat (limited to 'gnu/usr.bin/binutils/gdb')
-rw-r--r--gnu/usr.bin/binutils/gdb/auxv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/auxv.c b/gnu/usr.bin/binutils/gdb/auxv.c
index b8e5adb6eee..8765b637092 100644
--- a/gnu/usr.bin/binutils/gdb/auxv.c
+++ b/gnu/usr.bin/binutils/gdb/auxv.c
@@ -267,6 +267,8 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
break;
}
++ents;
+ if (type == AT_NULL)
+ break;
}
xfree (data);