From: Roland McGrath Date: Tue, 13 Jul 2010 02:22:21 +0000 (-0700) Subject: PR11808: loc2c fix for fields of noncontiguous location X-Git-Tag: release-1.3~41 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=211a4259e069c6234f672d35f12ca8035833edfd;p=systemtap.git PR11808: loc2c fix for fields of noncontiguous location * loc2c.c (location_relative): Chain onto loc_noncontiguous head so piece can be found from head of original list. --- diff --git a/loc2c.c b/loc2c.c index b3d3e1675..7c5ace0f9 100644 --- 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; }