diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-01-31 01:24:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-01-31 01:24:03 +0000 |
commit | 4fcf66da885273eeeea8e14b771d0e3ea20799d9 (patch) | |
tree | 54c8a3ebd35bd426e7f39acd89ac000930cc3a39 /gdb/mips-tdep.c | |
parent | e191e0abe5e90c81f39b0a428de8e4e44184161f (diff) | |
download | gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.zip gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.gz gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.bz2 |
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 17b80ca..05ba066 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1,7 +1,7 @@ /* Target-dependent code for the MIPS architecture, for GDB, the GNU Debugger. Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, - 1997, 1998, 1999, 2000, Free Software Foundation, Inc. + 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Alessandro Forin(af@cs.cmu.edu) at CMU and by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin. @@ -3331,7 +3331,7 @@ mips_set_processor_type_command (char *args, int from_tty) printf_unfiltered ("%s\n", mips_processor_type_table[i].name); /* Restore the value. */ - tmp_mips_processor_type = strsave (mips_processor_type); + tmp_mips_processor_type = xstrdup (mips_processor_type); return; } @@ -3340,7 +3340,7 @@ mips_set_processor_type_command (char *args, int from_tty) { error ("Unknown processor type `%s'.", tmp_mips_processor_type); /* Restore its value. */ - tmp_mips_processor_type = strsave (mips_processor_type); + tmp_mips_processor_type = xstrdup (mips_processor_type); } } @@ -4610,8 +4610,8 @@ Set this to be able to access processor-type-specific registers.\n\ c = add_show_from_set (c, &showlist); c->function.cfunc = mips_show_processor_type_command; - tmp_mips_processor_type = strsave (DEFAULT_MIPS_TYPE); - mips_set_processor_type_command (strsave (DEFAULT_MIPS_TYPE), 0); + tmp_mips_processor_type = xstrdup (DEFAULT_MIPS_TYPE); + mips_set_processor_type_command (xstrdup (DEFAULT_MIPS_TYPE), 0); #endif /* We really would like to have both "0" and "unlimited" work, but |