aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-05-18 20:19:52 +0000
committerTom Tromey <tromey@redhat.com>2011-05-18 20:19:52 +0000
commitff355380ea9ae6f2baa6652f77f6c24f7dd38d9c (patch)
tree01b74f8aaf7830cdcbdba0c8150f79bacdd53616 /gdb/ax-gdb.c
parented7319594583dffb825a9602afb95198207b9a0d (diff)
downloadgdb-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/ax-gdb.c')
-rw-r--r--gdb/ax-gdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index d1736e1..19c00ad 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -1549,7 +1549,7 @@ gen_static_field (struct gdbarch *gdbarch,
}
else
{
- char *phys_name = TYPE_FIELD_STATIC_PHYSNAME (type, fieldno);
+ const char *phys_name = TYPE_FIELD_STATIC_PHYSNAME (type, fieldno);
struct symbol *sym = lookup_symbol (phys_name, 0, VAR_DOMAIN, 0);
if (sym)