diff options
author | Jeff Holcomb <jeffh@redhat.com> | 2001-01-26 19:47:23 +0000 |
---|---|---|
committer | Jeff Holcomb <jeffh@redhat.com> | 2001-01-26 19:47:23 +0000 |
commit | 5b616ba11e5389dc47b9d85a3cbfbdbb54955801 (patch) | |
tree | b9efaef3347e013222c3a8b373607dbef3007a0f /gdb/thread.c | |
parent | b91d87cfc7f7c17338c5100c06424cc1b0b59c28 (diff) | |
download | gdb-5b616ba11e5389dc47b9d85a3cbfbdbb54955801.zip gdb-5b616ba11e5389dc47b9d85a3cbfbdbb54955801.tar.gz gdb-5b616ba11e5389dc47b9d85a3cbfbdbb54955801.tar.bz2 |
2001-01-24 Jeff Holcomb <jeffh@redhat.com>
* remote-udi.c (udi_open): Change strdup to xstrdup.
* thread.c (thread_apply_all_command): Change strdup to xstrdup.
Update copyright message.
* varobj.c (delete_variable_1): Likewise.
* gdb_string.h: Remove declaration of strdup. Update copyright
message.
* config/xm-mpw.h: Likewise.
* config/i386/xm-i386mach.h: Likewise.
* config/m68k/xm-apollo68b.h: Likewise.
* config/m68k/xm-hp300bsd.h: Likewise.
* config/rs6000/xm-rs6000.h: Likewise.
* config/vax/xm-vaxult.h: Remove declaration of strdup.
* config/vax/xm-vaxult2.h: Likewise.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 647976c..eeeca49 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -1,5 +1,5 @@ /* Multi-process/thread control for GDB, the GNU debugger. - Copyright 1986, 1987, 1988, 1993, 1998, 1999, 2000 + Copyright 1986, 1987, 1988, 1993, 1998, 1999, 2000, 2001 Contributed by Lynx Real-Time Systems, Inc. Los Gatos, CA. Free Software Foundation, Inc. @@ -531,7 +531,7 @@ thread_apply_all_command (char *cmd, int from_tty) /* Save a copy of the command in case it is clobbered by execute_command */ - saved_cmd = strdup (cmd); + saved_cmd = xstrdup (cmd); saved_cmd_cleanup_chain = make_cleanup (xfree, (void *) saved_cmd); for (tp = thread_list; tp; tp = tp->next) if (thread_alive (tp)) @@ -574,7 +574,7 @@ thread_apply_command (char *tidlist, int from_tty) /* Save a copy of the command in case it is clobbered by execute_command */ - saved_cmd = strdup (cmd); + saved_cmd = xstrdup (cmd); saved_cmd_cleanup_chain = make_cleanup (xfree, (void *) saved_cmd); while (tidlist < cmd) { |