]> sourceware.org Git - systemtap.git/commitdiff
PR11808: loc2c fix for fields of noncontiguous location
authorRoland McGrath <roland@redhat.com>
Tue, 13 Jul 2010 02:22:21 +0000 (19:22 -0700)
committerRoland McGrath <roland@redhat.com>
Tue, 13 Jul 2010 02:22:21 +0000 (19:22 -0700)
* loc2c.c (location_relative): Chain onto loc_noncontiguous head so piece
can be found from head of original list.

loc2c.c

diff --git a/loc2c.c b/loc2c.c
index b3d3e16755404dee2962cd0b91bb49abec342ac4..7c5ace0f977b8b501033767354a62966c4944c23 100644 (file)
--- a/loc2c.c
+++ b/loc2c.c
@@ -1025,6 +1025,8 @@ location_relative (struct obstack *pool,
              if (piece == NULL)
                DIE ("offset outside available pieces");
 
+             assert ((*input)->next == NULL);
+             (*input)->next = piece;
              *input = piece;
            }
 
This page took 0.048925 seconds and 5 git commands to generate.