libdw: Various convenience functions for individual attributes now use
dwarf_attr_integrate to look up indirect inherited attributes.
+ Location expression handling now supports DW_OP_implicit_value.
libdwfl: Support automatic decompression of files in XZ format,
and of Linux kernel images made with bzip2 or LZMA (as well as gzip).
+2009-09-17 Roland McGrath <roland@redhat.com>
+
+ * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
+ argument a pointer to const.
+ * libdw.h: Update decl.
+
2009-09-10 Roland McGrath <roland@redhat.com>
* dwarf_getlocation.c (store_implicit_value): New function.
int
dwarf_getlocation_implicit_value (attr, op, return_block)
Dwarf_Attribute *attr;
- Dwarf_Op *op;
+ const Dwarf_Op *op;
Dwarf_Block *return_block;
{
if (attr == NULL)
return -1;
- struct loc_block_s fake = { .addr = op };
+ struct loc_block_s fake = { .addr = (void *) op };
struct loc_block_s **found = tfind (&fake, &attr->cu->locs, loc_compare);
if (unlikely (found == NULL))
{
The OP pointer must point into an expression that dwarf_getlocation
or dwarf_getlocation_addr has returned given the same ATTR. */
extern int dwarf_getlocation_implicit_value (Dwarf_Attribute *attr,
- Dwarf_Op *op,
+ const Dwarf_Op *op,
Dwarf_Block *return_block)
__nonnull_attribute__ (2, 3);