mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
objfile's obstack.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2013-05-06 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
|
||||||
|
objfile's obstack.
|
||||||
|
|
||||||
2013-05-06 Doug Evans <dje@google.com>
|
2013-05-06 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* dbxread.c (process_one_symbol): Constify section_offsets parameter.
|
* dbxread.c (process_one_symbol): Constify section_offsets parameter.
|
||||||
|
@ -16424,13 +16424,12 @@ dwarf2_const_value_attr (struct attribute *attr, struct type *type,
|
|||||||
/* Symbols of this form are reasonably rare, so we just
|
/* Symbols of this form are reasonably rare, so we just
|
||||||
piggyback on the existing location code rather than writing
|
piggyback on the existing location code rather than writing
|
||||||
a new implementation of symbol_computed_ops. */
|
a new implementation of symbol_computed_ops. */
|
||||||
*baton = obstack_alloc (&objfile->objfile_obstack,
|
*baton = obstack_alloc (obstack, sizeof (struct dwarf2_locexpr_baton));
|
||||||
sizeof (struct dwarf2_locexpr_baton));
|
|
||||||
(*baton)->per_cu = cu->per_cu;
|
(*baton)->per_cu = cu->per_cu;
|
||||||
gdb_assert ((*baton)->per_cu);
|
gdb_assert ((*baton)->per_cu);
|
||||||
|
|
||||||
(*baton)->size = 2 + cu_header->addr_size;
|
(*baton)->size = 2 + cu_header->addr_size;
|
||||||
data = obstack_alloc (&objfile->objfile_obstack, (*baton)->size);
|
data = obstack_alloc (obstack, (*baton)->size);
|
||||||
(*baton)->data = data;
|
(*baton)->data = data;
|
||||||
|
|
||||||
data[0] = DW_OP_addr;
|
data[0] = DW_OP_addr;
|
||||||
|
Reference in New Issue
Block a user