diff options
author | Tom Tromey <tromey@redhat.com> | 2014-03-27 12:16:38 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-04-14 11:42:18 -0600 |
commit | c848d64244912f9f411bec7b1c045bf14c72b61b (patch) | |
tree | 29d3b1adcd1c2714a8ebc220002c264c2d693846 /gdb/value.h | |
parent | 0626fc76d1b95c1c5b158a9b0be17791aa9078f8 (diff) | |
download | gdb-c848d64244912f9f411bec7b1c045bf14c72b61b.zip gdb-c848d64244912f9f411bec7b1c045bf14c72b61b.tar.gz gdb-c848d64244912f9f411bec7b1c045bf14c72b61b.tar.bz2 |
constify value_aggregate_elt
While working on another patch I realized that value_aggregate_elt's
"name" parameter ought to be const. This patch implements this.
2014-04-14 Tom Tromey <tromey@redhat.com>
* valops.c (value_aggregate_elt, value_struct_elt_for_reference)
(value_namespace_elt, value_maybe_namespace_elt): Make "name"
const.
* value.h (value_aggregate_elt): Update.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.h b/gdb/value.h index f846669..9425a0e 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -676,7 +676,7 @@ extern struct value *value_struct_elt_bitpos (struct value **argp, const char *err); extern struct value *value_aggregate_elt (struct type *curtype, - char *name, + const char *name, struct type *expect_type, int want_address, enum noside noside); |