summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
authorgraydon <graydon>2005-09-01 02:53:53 +0000
committergraydon <graydon>2005-09-01 02:53:53 +0000
commite7a012f0b1eea7e225b4097edf03ae27d0815fba (patch)
treea78443da1d72a2bece5816187539c7bb0abe9f23 /loc2c.c
parent6315bd76d0484d0800fbb6f3a9851932262c1fbc (diff)
downloadsystemtap-steved-e7a012f0b1eea7e225b4097edf03ae27d0815fba.tar.gz
systemtap-steved-e7a012f0b1eea7e225b4097edf03ae27d0815fba.tar.xz
systemtap-steved-e7a012f0b1eea7e225b4097edf03ae27d0815fba.zip
2005-08-31 Graydon Hoare <graydon@redhat.com>
PR systemtap/1258 * tapsets.cxx (dwflpp::literal_stmt_for_local): Support DW_TAG_enumeration_type tag as synonymous with DW_TAG_base_type. * loc2c.c (base_byte_size): Likewise. * testsuite/buildok/seven.stp: Adjust to work on UP kernels.
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loc2c.c b/loc2c.c
index 1d610aa2..a6b4d8da 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -1129,7 +1129,8 @@ c_translate_pointer (struct obstack *pool, int indent,
static Dwarf_Word
base_byte_size (Dwarf_Die *typedie, struct location *origin)
{
- assert (dwarf_tag (typedie) == DW_TAG_base_type);
+ assert (dwarf_tag (typedie) == DW_TAG_base_type ||
+ dwarf_tag (typedie) == DW_TAG_enumeration_type);
Dwarf_Attribute attr_mem;
Dwarf_Word size;