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/arc-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/arc-tdep.c')
-rw-r--r-- | gdb/arc-tdep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c index 2170ed8..701ee55 100644 --- a/gdb/arc-tdep.c +++ b/gdb/arc-tdep.c @@ -1,5 +1,5 @@ /* ARC target-dependent stuff. - Copyright (C) 1995, 1997 Free Software Foundation, Inc. + Copyright (C) 1995, 1997, 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -636,7 +636,7 @@ arc_set_cpu_type_command (char *args, int from_tty) printf_unfiltered ("%s\n", arc_cpu_type_table[i].name); /* Restore the value. */ - tmp_arc_cpu_type = strsave (arc_cpu_type); + tmp_arc_cpu_type = xstrdup (arc_cpu_type); return; } @@ -645,7 +645,7 @@ arc_set_cpu_type_command (char *args, int from_tty) { error ("Unknown cpu type `%s'.", tmp_arc_cpu_type); /* Restore its value. */ - tmp_arc_cpu_type = strsave (arc_cpu_type); + tmp_arc_cpu_type = xstrdup (arc_cpu_type); } } @@ -695,9 +695,9 @@ cpu-type-specific registers and recognize cpu-type-specific instructions.\ c = add_show_from_set (c, &showlist); c->function.cfunc = arc_show_cpu_type_command; - /* We have to use strsave here because the `set' command frees it before - setting a new value. */ - tmp_arc_cpu_type = strsave (DEFAULT_ARC_CPU_TYPE); + /* We have to use xstrdup() here because the `set' command frees it + before setting a new value. */ + tmp_arc_cpu_type = xstrdup (DEFAULT_ARC_CPU_TYPE); arc_set_cpu_type (tmp_arc_cpu_type); c = add_set_cmd ("displaypipeline", class_support, var_zinteger, |