diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-12-07 03:56:43 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-12-07 03:56:43 +0000 |
commit | c2d11a7da0372ef052af1c74d56e264d8aae4743 (patch) | |
tree | b2ceadb275bb9a170315ab66111c1f643c9ebf71 /gdb/corefile.c | |
parent | 1e37c28164d4f504b2ae8189d0b82a862cfa323d (diff) | |
download | binutils-gdb-c2d11a7da0372ef052af1c74d56e264d8aae4743.tar.gz |
import gdb-1999-12-06 snapshot
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r-- | gdb/corefile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c index f41cc55b66e..ea9ce8550d2 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -90,7 +90,7 @@ core_file_command (filename, from_tty) symfile = t->to_core_file_to_sym_file (filename); if (symfile) { - char *symfile_copy = strdup (symfile); + char *symfile_copy = xstrdup (symfile); make_cleanup (free, symfile_copy); symbol_file_command (symfile_copy, from_tty); @@ -185,7 +185,7 @@ reopen_exec_file () return; /* If the timestamp of the exec file has changed, reopen it. */ - filename = strdup (bfd_get_filename (exec_bfd)); + filename = xstrdup (bfd_get_filename (exec_bfd)); make_cleanup (free, filename); mtime = bfd_get_mtime (exec_bfd); res = stat (filename, &st); |