summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2009-09-17 14:25:28 +0800
committerWenji Huang <wenji.huang@oracle.com>2009-09-17 14:25:28 +0800
commitbbc212e1244dbd30c2569cdd19d50ca36ca6612a (patch)
tree34023a5b7648d58e0098c8ee561f391144469005 /dwflpp.cxx
parent817c605781045a578b5464e68c39461bd541d307 (diff)
downloadsystemtap-steved-bbc212e1244dbd30c2569cdd19d50ca36ca6612a.tar.gz
systemtap-steved-bbc212e1244dbd30c2569cdd19d50ca36ca6612a.tar.xz
systemtap-steved-bbc212e1244dbd30c2569cdd19d50ca36ca6612a.zip
Fix compilation error of dwflpp.cxx on gcc 4.1
* dwflpp.cxx(translate_location): Separate setting value from declaration and add missing parameter.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index a73c3c4c..ee3985cb 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -1732,11 +1732,12 @@ dwflpp::translate_location(struct obstack *pool,
#if !_ELFUTILS_PREREQ (0,142)
if (dwarf_whatattr (attr) == DW_AT_data_member_location)
{
- Dwarf_Op offset_loc = { .atom = DW_OP_plus_uconst };
+ Dwarf_Op offset_loc;
+ offset_loc.atom = DW_OP_plus_uconst;
if (dwarf_formudata (attr, &offset_loc.number) == 0)
return c_translate_location (pool, &loc2c_error, this,
&loc2c_emit_address, 1, 0, pc,
- &offset_loc, 1, NULL, NULL);
+ &offset_loc, 1, NULL, NULL, NULL);
}
#endif