can be more than one in the list. */
const gdb_byte *
-dwarf2_find_location_expression (struct dwarf2_loclist_baton *baton,
+dwarf2_find_location_expression (const dwarf2_loclist_baton *baton,
size_t *locexpr_length, CORE_ADDR pc)
{
dwarf2_per_objfile *per_objfile = baton->per_objfile;
case PROP_LOCLIST:
{
- struct dwarf2_property_baton *baton = prop->baton ();
+ const dwarf2_property_baton *baton = prop->baton ();
CORE_ADDR pc;
const gdb_byte *data;
struct value *val;
case PROP_ADDR_OFFSET:
{
- struct dwarf2_property_baton *baton = prop->baton ();
+ const dwarf2_property_baton *baton = prop->baton ();
const struct property_addr_info *pinfo;
struct value *val;
CORE_ADDR pc,
struct symbol *sym)
{
- struct dwarf2_property_baton *baton = prop->baton ();
+ const dwarf2_property_baton *baton = prop->baton ();
const gdb_byte *data;
size_t size;
dwarf2_per_cu_data *per_cu;
/* Find a particular location expression from a location list. */
const gdb_byte *dwarf2_find_location_expression
- (struct dwarf2_loclist_baton *baton,
+ (const dwarf2_loclist_baton *baton,
size_t *locexpr_length,
CORE_ADDR pc);
/* Storage for dynamic property. */
- dwarf2_property_baton *baton;
+ const dwarf2_property_baton *baton;
/* Storage of variant parts for a type. A type with variant parts
has all its fields "linearized" -- stored in a single field
m_data.const_val = const_val;
}
- dwarf2_property_baton *baton () const
+ const dwarf2_property_baton *baton () const
{
gdb_assert (m_kind == PROP_LOCEXPR
|| m_kind == PROP_LOCLIST
return m_data.baton;
}
- void set_locexpr (dwarf2_property_baton *baton)
+ void set_locexpr (const dwarf2_property_baton *baton)
{
m_kind = PROP_LOCEXPR;
m_data.baton = baton;
}
- void set_loclist (dwarf2_property_baton *baton)
+ void set_loclist (const dwarf2_property_baton *baton)
{
m_kind = PROP_LOCLIST;
m_data.baton = baton;
}
- void set_addr_offset (dwarf2_property_baton *baton)
+ void set_addr_offset (const dwarf2_property_baton *baton)
{
m_kind = PROP_ADDR_OFFSET;
m_data.baton = baton;