From 7c6467a4fb67c04f23f44969a4705f99809501e3 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Thu, 17 Jul 2008 20:56:11 +0000 Subject: [PATCH] Fix for failing gdb.base/auxv.exp on Linux --- gdb/ChangeLog | 4 ++++ gdb/auxv.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de6dbc25889..a02b93af593 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-07-17 Paul Pluzhnikov + + * auxv.c (fprint_target_auxv): Stop at AT_NULL. + 2008-07-15 Andreas Schwab * valops.c (value_cast_pointers): Follow typedefs when checking diff --git a/gdb/auxv.c b/gdb/auxv.c index 292a0d6fa71..549b666cb3c 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); -- 2.30.2