2001-01-24 Jeff Holcomb <jeffh@redhat.com>
authorJeff Holcomb <jeffh@redhat.com>
Fri, 26 Jan 2001 19:47:23 +0000 (19:47 +0000)
committerJeff Holcomb <jeffh@redhat.com>
Fri, 26 Jan 2001 19:47:23 +0000 (19:47 +0000)
        * 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.

12 files changed:
gdb/ChangeLog
gdb/config/i386/xm-i386mach.h
gdb/config/m68k/xm-apollo68b.h
gdb/config/m68k/xm-hp300bsd.h
gdb/config/rs6000/xm-rs6000.h
gdb/config/vax/xm-vaxult.h
gdb/config/vax/xm-vaxult2.h
gdb/config/xm-mpw.h
gdb/gdb_string.h
gdb/remote-udi.c
gdb/thread.c
gdb/varobj.c

index 4f257244e7b0d78f21cd4024c2c1e01c7538b5c0..96ca6d23bfe20a6dc5d4de6534c15a5b93f7b8d6 100644 (file)
@@ -1,3 +1,20 @@
+2001-01-26  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.
+
 2001-01-26  Jeff Holcomb  <jeffh@redhat.com>
 
        * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
index 094660a17d37f1a49e62b14eae9655acee78ce90..e91e4931dc6ede234966931a51bbf67642455591 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions to make GDB run on Mach on an Intel 386
-   Copyright (C) 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright (C) 1986, 1987, 1989, 1991, 1992, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -27,5 +27,3 @@
 
 /* <errno.h> only defines this if __STDC__!!! */
 extern int errno;
-
-extern char *strdup ();
index 8509c3259bf072385379d8aeeac0b7b7f5c0ed1c..c73c974d8fd978bd54d7069279d3237337c68050 100644 (file)
@@ -1,5 +1,5 @@
 /* Macro definitions for an Apollo m68k in BSD mode
-   Copyright (C) 1992 Free Software Foundation, Inc.
+   Copyright (C) 1992, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,5 +21,3 @@
 #define HOST_BYTE_ORDER BIG_ENDIAN
 
 #define ALIGN_STACK_ON_STARTUP
-
-extern char *strdup ();
index 39118014f23ea695f50075dd1bd304276e1edc8d..2986fd8231bee75111867afccf516c18fd2513e2 100644 (file)
@@ -1,5 +1,5 @@
 /* Parameters for hosting on a Hewlett-Packard 9000/300, running bsd.
-   Copyright 1986, 1987, 1989, 1991, 1992, 1993  Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 2001  Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -30,8 +30,6 @@
 
 /* Kernel is a bit tenacious about sharing text segments, disallowing bpts.  */
 #define        ONE_PROCESS_WRITETEXT
-
-extern char *strdup (const char *);
 \f
 /* Interface definitions for kernel debugger KDB.  */
 
index 24a9e501cd8f99b2f8c22c7ee95c446263c2d879..6a1a4bd34b76fd68eb9f99172d7bd25e53ba6503 100644 (file)
@@ -1,5 +1,5 @@
 /* Parameters for hosting on an RS6000, for GDB, the GNU debugger.
-   Copyright 1986-87, 1989, 1991-96, 1998 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2001 Free Software Foundation, Inc.
    Contributed by IBM Corporation.
 
    This file is part of GDB.
@@ -67,9 +67,6 @@
 
 #define        SETPGRP_ARGS 1
 
-/* AIX doesn't have strdup, so we need to declare it for libiberty */
-extern char *strdup (char *);
-
 /* Signal handler for SIGWINCH `window size changed'. */
 
 #define        SIGWINCH_HANDLER  aix_resizewindow
index 5b9020a55247f015ab5811c56fdbb5f696760bbf..576a44fde5787f61df96238fcb8f83e7d9779755 100644 (file)
@@ -1,8 +1,6 @@
 /* Definitions to make GDB run on a vax under Ultrix. */
 
 #include "vax/xm-vax.h"
-extern char *strdup ();
-
 /* This is required for Ultrix 3.1b, not for later versions.  Ultrix
    3.1b can't just use xm-vaxult2.h because Ultrix 3.1b does define
    FD_SET.  Sure, we could have separate configurations for vaxult2,
index 3d039ce95f6603a991a18c77ce26136248d599bc..a46669830cdd5fa84012e5985357713e5cff1c91 100644 (file)
@@ -1,8 +1,6 @@
 /* Definitions to make GDB run on a vax under Ultrix. */
 
 #include "vax/xm-vax.h"
-extern char *strdup ();
-
 #define NO_PTRACE_H
 
 /* Old versions of ultrix have fd_set but not the FD_* macros.  */
index f6aa90ecc29a587b968879afce063c73c5bd49ed..535a10909b22b9ac45e4aea5818c0be25adaa49c 100644 (file)
@@ -1,5 +1,5 @@
 /* Macro definitions for running GDB on Apple Macintoshes.
-   Copyright (C) 1994, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1994, 1995, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 
 #define POSIX_UTIME
 
-/* No declaration of strdup in MPW's string.h, oddly enough. */
-
-char *strdup (char *s1);
-
 /* '.' indicates drivers on the Mac, so we need a different filename. */
 
 #define GDBINIT_FILENAME "_gdbinit"
index e6417b5907871f0bf62a3b376fa2bb433e7e2239..2d9fe7a51aa2945746105a288a6ab028f731e208 100644 (file)
@@ -1,5 +1,5 @@
 /* Portable <string.h>
-   Copyright 1995, 1998 Free Software Foundation, Inc.
+   Copyright 1995, 1998, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -58,10 +58,6 @@ extern char *strerror (int); /* X3.159-1989  4.11.6.2 */
 #endif
 #endif
 
-#ifdef NEED_DECLARATION_STRDUP
-extern char *strdup ();                /* full prototype collides w/ some OSes (AIX 3.2.5) */
-#endif
-
 #ifdef NEED_DECLARATION_STRSTR
 #ifndef strstr
 extern char *strstr (const char *, const char *);      /* X3.159-1989  4.11.5.7 */
index 3987d87a5bac9ff6b64ef401b6fe73837262e37a..ced664e4f50088ddaa9eedef5a0d6b4e3fb69d45 100644 (file)
@@ -234,7 +234,7 @@ udi_open (char *name, int from_tty)
   if (!name)
     error ("Usage: target udi config_id, where config_id appears in udi_soc file");
 
-  udi_config_id = strdup (strtok (name, " \t"));
+  udi_config_id = xstrdup (strtok (name, " \t"));
 
   if (UDIConnect (udi_config_id, &udi_session_id))
     /* FIXME: Should set udi_session_id to -1 here.  */
index 647976c5719694ac2905999c2b345d8a8f90ab76..eeeca4955309ee0fc3e4b5244ef30cb69914e861 100644 (file)
@@ -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)
     {
index ae024a4cebd87d04188d9d820b2905089cfa47f7..97e2a4e356b1ba12bc7f827bc04801789a2dbc6d 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the GDB variable objects API.
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -1072,7 +1072,7 @@ delete_variable_1 (struct cpstack **resultp, int *delcountp, struct varobj *var,
      yet been installed, don't report it, it belongs to the caller... */
   if (var->obj_name != NULL)
     {
-      cppush (resultp, strdup (var->obj_name));
+      cppush (resultp, xstrdup (var->obj_name));
       *delcountp = *delcountp + 1;
     }
 
This page took 0.032042 seconds and 4 git commands to generate.