From: Sanimir Agovic Date: Thu, 29 Aug 2013 12:26:59 +0000 (+0000) Subject: cleanup: make allocate_value_contents static X-Git-Tag: binutils-2_24-branchpoint~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=548b762d1b1f81f79c0ad824746e1f96a37f8cf4;p=external%2Fbinutils.git cleanup: make allocate_value_contents static 2013-08-29 Sanimir Agovic * value.c (allocate_value_contents): Make static. * value.h (allocate_value_contents): Remove prototype. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2f0bb85..8735144 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-08-29 Sanimir Agovic + * value.c (allocate_value_contents): Make static. + * value.h (allocate_value_contents): Remove prototype. + +2013-08-29 Sanimir Agovic + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead of assembling value via allocate_value_lazy and attribute setter. * findvar.c (default_read_var_value): Use value_at_lazy instead of diff --git a/gdb/value.c b/gdb/value.c index 7370257..42a8d2f 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -707,7 +707,7 @@ allocate_value_lazy (struct type *type) /* Allocate the contents of VAL if it has not been allocated yet. */ -void +static void allocate_value_contents (struct value *val) { if (!val->contents) diff --git a/gdb/value.h b/gdb/value.h index f03cf76..98dbadf 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -593,7 +593,6 @@ extern struct value *default_read_var_value (struct symbol *var, extern struct value *allocate_value (struct type *type); extern struct value *allocate_value_lazy (struct type *type); -extern void allocate_value_contents (struct value *value); extern void value_contents_copy (struct value *dst, int dst_offset, struct value *src, int src_offset, int length);