aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-06-08 00:52:56 +0000
committerAndrew Cagney <cagney@redhat.com>2000-06-08 00:52:56 +0000
commit53904c9e670da0974aebfb6cdaa30e9c55876508 (patch)
tree05ca51eb0b7848a88993468318da40d301819565 /gdb/i386-tdep.c
parent150f24a284293f28cc74a5469fb5d4b242336154 (diff)
downloadgdb-53904c9e670da0974aebfb6cdaa30e9c55876508.zip
gdb-53904c9e670da0974aebfb6cdaa30e9c55876508.tar.gz
gdb-53904c9e670da0974aebfb6cdaa30e9c55876508.tar.bz2
Change signature of function add_set_enum_cmd() so that it uses
constant character pointers. Update everything. As a consequence fix infrun's follow-fork plugging a small memory leak.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 63f2ba4..4eddde5 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -75,15 +75,15 @@ int i386_register_virtual_size[MAX_NUM_REGS];
/* This is the variable the is set with "set disassembly-flavor",
and its legitimate values. */
-static char att_flavor[] = "att";
-static char intel_flavor[] = "intel";
-static char *valid_flavors[] =
+static const char att_flavor[] = "att";
+static const char intel_flavor[] = "intel";
+static const char *valid_flavors[] =
{
att_flavor,
intel_flavor,
NULL
};
-static char *disassembly_flavor = att_flavor;
+static const char *disassembly_flavor = att_flavor;
static void i386_print_register (char *, int, int);