summaryrefslogtreecommitdiffstats
path: root/loc2c-test.c
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2009-06-24 09:37:51 -0400
committerWilliam Cohen <wcohen@redhat.com>2009-06-24 09:37:51 -0400
commit9cb00f47af5b4feb20df8d747ba9ecc683c26aa6 (patch)
treef4d834770a06e0e5d887cb8a409f0c774d3e193d /loc2c-test.c
parent174eae80fcdcdc6bfd002e82d919259fe46b1149 (diff)
parentf77540fe71e8237942fe28cc3c2ffd5ad9f10a8d (diff)
downloadsystemtap-steved-9cb00f47af5b4feb20df8d747ba9ecc683c26aa6.tar.gz
systemtap-steved-9cb00f47af5b4feb20df8d747ba9ecc683c26aa6.tar.xz
systemtap-steved-9cb00f47af5b4feb20df8d747ba9ecc683c26aa6.zip
Merge branch 'master' of ssh://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));