summaryrefslogtreecommitdiffstats
path: root/loc2c-test.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-06-25 11:51:29 -0400
committerDave Brolley <brolley@redhat.com>2009-06-25 11:51:29 -0400
commita2958e68a76148370e8aaf41dafcb6a5726fc595 (patch)
tree76727b8f5ab14c9abdbd00ce92898fb9e0ae49a9 /loc2c-test.c
parent313db8e6d1e62f372d168b7368f220cb432d07d6 (diff)
parentf1d04fa79e3c8664e8e6b2d1d3f38e1e51effcbf (diff)
downloadsystemtap-steved-a2958e68a76148370e8aaf41dafcb6a5726fc595.tar.gz
systemtap-steved-a2958e68a76148370e8aaf41dafcb6a5726fc595.tar.xz
systemtap-steved-a2958e68a76148370e8aaf41dafcb6a5726fc595.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'loc2c-test.c')
-rw-r--r--loc2c-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/loc2c-test.c b/loc2c-test.c
index a584c024..01edc805 100644
--- a/loc2c-test.c
+++ b/loc2c-test.c
@@ -255,7 +255,9 @@ handle_variable (Dwarf_Die *scopes, int nscopes, int out,
if (typedie == NULL)
error (2, 0, _("cannot get type of field: %s"), dwarf_errmsg (-1));
typetag = dwarf_tag (typedie);
- if (typetag != DW_TAG_typedef)
+ if (typetag != DW_TAG_typedef &&
+ typetag != DW_TAG_const_type &&
+ typetag != DW_TAG_volatile_type)
break;
if (dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem) == NULL)
error (2, 0, _("cannot get type of field: %s"), dwarf_errmsg (-1));