aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-12-11 20:19:39 +0000
committerKevin Buettner <kevinb@redhat.com>2002-12-11 20:19:39 +0000
commit321432c0c6c6849c0e924f65422fe4a92b1b6907 (patch)
tree63db1c1b6dd16fb6ff62189a8200f03dfdb3aecd /gdb/gdbarch.c
parenta23b6e6a0ad4098759968bf2c666357d5dd08c22 (diff)
downloadgdb-321432c0c6c6849c0e924f65422fe4a92b1b6907.zip
gdb-321432c0c6c6849c0e924f65422fe4a92b1b6907.tar.gz
gdb-321432c0c6c6849c0e924f65422fe4a92b1b6907.tar.bz2
* gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
(ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of ``char *'' for return and parameter types. * gdbarch.h, gdbarch.c: Regenerate. * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change return type from ``char *'' to ``const char *''. * c-typeprint.c (c_type_print_modifier): Make ``address_space_id'' const.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 03a4ae3..938d9fa 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -5368,7 +5368,7 @@ gdbarch_address_class_type_flags_to_name_p (struct gdbarch *gdbarch)
return gdbarch->address_class_type_flags_to_name != 0;
}
-char *
+const char *
gdbarch_address_class_type_flags_to_name (struct gdbarch *gdbarch, int type_flags)
{
gdb_assert (gdbarch != NULL);
@@ -5395,7 +5395,7 @@ gdbarch_address_class_name_to_type_flags_p (struct gdbarch *gdbarch)
}
int
-gdbarch_address_class_name_to_type_flags (struct gdbarch *gdbarch, char *name, int *type_flags_ptr)
+gdbarch_address_class_name_to_type_flags (struct gdbarch *gdbarch, const char *name, int *type_flags_ptr)
{
gdb_assert (gdbarch != NULL);
if (gdbarch->address_class_name_to_type_flags == 0)