diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-09-16 20:17:49 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-09-16 20:17:49 +0000 |
commit | 75f8852417925f625b5a116747ea079e79926c79 (patch) | |
tree | ce8fb31f83459ba00bf172a9602ed10aad32e896 /gnu/usr.bin/binutils/gdb | |
parent | faff50d1f20f5df15ff00d40a9873bbd1de59bde (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.c | 2 |
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); |