diff options
author | Tom Tromey <tromey@redhat.com> | 2011-05-18 20:19:52 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-05-18 20:19:52 +0000 |
commit | ff355380ea9ae6f2baa6652f77f6c24f7dd38d9c (patch) | |
tree | 01b74f8aaf7830cdcbdba0c8150f79bacdd53616 /gdb/dwarf2read.c | |
parent | ed7319594583dffb825a9602afb95198207b9a0d (diff) | |
download | gdb-ff355380ea9ae6f2baa6652f77f6c24f7dd38d9c.zip gdb-ff355380ea9ae6f2baa6652f77f6c24f7dd38d9c.tar.gz gdb-ff355380ea9ae6f2baa6652f77f6c24f7dd38d9c.tar.bz2 |
* dwarf2read.c (dwarf2_add_field): Constify.
* value.c (value_static_field): Constify.
* gdbtypes.h (struct main_type) <field.field_location.physname>:
Now const.
* ax-gdb.c (gen_static_field): Constify
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 562361e..658205e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -6542,7 +6542,7 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die, (so through at least 3.2.1) incorrectly generate DW_TAG_variable tags. */ - char *physname; + const char *physname; /* Get name of field. */ fieldname = dwarf2_name (die, cu); @@ -6563,7 +6563,7 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die, } /* Get physical name. */ - physname = (char *) dwarf2_physname (fieldname, die, cu); + physname = dwarf2_physname (fieldname, die, cu); /* The name is already allocated along with this objfile, so we don't need to duplicate it for the type. */ |