OSDN Git Service

Fix for failing gdb.base/auxv.exp on Linux
authorppluzhnikov <ppluzhnikov>
Thu, 17 Jul 2008 20:56:11 +0000 (20:56 +0000)
committerppluzhnikov <ppluzhnikov>
Thu, 17 Jul 2008 20:56:11 +0000 (20:56 +0000)
gdb/ChangeLog
gdb/auxv.c

index de6dbc2..a02b93a 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * auxv.c (fprint_target_auxv): Stop at AT_NULL.
+
 2008-07-15  Andreas Schwab  <schwab@suse.de>
 
        * valops.c (value_cast_pointers): Follow typedefs when checking
index 292a0d6..549b666 100644 (file)
@@ -246,6 +246,8 @@ fprint_target_auxv (struct ui_file *file, struct target_ops *ops)
          break;
        }
       ++ents;
+      if (type == AT_NULL)
+       break;
     }
 
   xfree (data);