aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-06 19:28:36 +0000
committerTom Tromey <tromey@redhat.com>2013-05-06 19:28:36 +0000
commit7919a9734506e499c613ee7a8a88f8e33101f9a9 (patch)
tree33f665bb3c1790c35811c0bad5034e514e33a2f8 /gdb
parent3189cb129704a2e7b7a3d338ec5dc80747fb51ba (diff)
downloadgdb-7919a9734506e499c613ee7a8a88f8e33101f9a9.zip
gdb-7919a9734506e499c613ee7a8a88f8e33101f9a9.tar.gz
gdb-7919a9734506e499c613ee7a8a88f8e33101f9a9.tar.bz2
* dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
objfile's obstack.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a074277..52780a9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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>
* dbxread.c (process_one_symbol): Constify section_offsets parameter.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 65d1c82..0ba0c24 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -16424,13 +16424,12 @@ dwarf2_const_value_attr (struct attribute *attr, struct type *type,
/* Symbols of this form are reasonably rare, so we just
piggyback on the existing location code rather than writing
a new implementation of symbol_computed_ops. */
- *baton = obstack_alloc (&objfile->objfile_obstack,
- sizeof (struct dwarf2_locexpr_baton));
+ *baton = obstack_alloc (obstack, sizeof (struct dwarf2_locexpr_baton));
(*baton)->per_cu = cu->per_cu;
gdb_assert ((*baton)->per_cu);
(*baton)->size = 2 + cu_header->addr_size;
- data = obstack_alloc (&objfile->objfile_obstack, (*baton)->size);
+ data = obstack_alloc (obstack, (*baton)->size);
(*baton)->data = data;
data[0] = DW_OP_addr;