summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb/auxv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/gdb/auxv.c')
-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);