diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-06-08 00:52:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-06-08 00:52:56 +0000 |
commit | 53904c9e670da0974aebfb6cdaa30e9c55876508 (patch) | |
tree | 05ca51eb0b7848a88993468318da40d301819565 /gdb/i386-tdep.c | |
parent | 150f24a284293f28cc74a5469fb5d4b242336154 (diff) | |
download | ppe42-binutils-53904c9e670da0974aebfb6cdaa30e9c55876508.tar.gz ppe42-binutils-53904c9e670da0974aebfb6cdaa30e9c55876508.zip |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 63f2ba4873..4eddde5ef4 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); |