* write.c (relax_segment <rs_space>): Calculate growth using
[deliverable/binutils-gdb.git] / gdb / maint.c
index c2fc9e1719bb0af4359d65f18dccefb304fdd04f..cd694ce721ed845806f335be53f16c1463ee9ff0 100644 (file)
@@ -1,5 +1,6 @@
 /* Support for GDB maintenance commands.
-   Copyright 1992, 1993, 1994 Free Software Foundation, Inc.
+   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001
+   Free Software Foundation, Inc.
    Written by Fred Fish at Cygnus Support.
 
    This file is part of GDB.
@@ -115,7 +116,8 @@ maintenance_dump_me (char *args, int from_tty)
 static void
 maintenance_internal_error (char *args, int from_tty)
 {
-  internal_error ("internal maintenance");
+  internal_error (__FILE__, __LINE__,
+                 "internal maintenance");
 }
 
 /* Someday we should allow demangling for things other than just
@@ -141,7 +143,7 @@ maintenance_demangle (char *args, int from_tty)
       if (demangled != NULL)
        {
          printf_unfiltered ("%s\n", demangled);
-         free (demangled);
+         xfree (demangled);
        }
       else
        {
@@ -353,7 +355,7 @@ maintenance_translate_address (char *arg, int from_tty)
 }
 
 
-/* When a comamnd is deprecated the user will be warned the first time
+/* When a command is deprecated the user will be warned the first time
    the command is used.  If possible, a replacement will be
    offered. */
 
@@ -444,7 +446,7 @@ maintenance_do_deprecate (char *text, int deprecate)
     {
 
       if (alias->flags & MALLOCED_REPLACEMENT)
-       free (alias->replacement);
+       xfree (alias->replacement);
 
       if (deprecate)
        alias->flags |= (DEPRECATED_WARN_USER | CMD_DEPRECATED);
@@ -457,7 +459,7 @@ maintenance_do_deprecate (char *text, int deprecate)
   else if (cmd)
     {
       if (cmd->flags & MALLOCED_REPLACEMENT)
-       free (cmd->replacement);
+       xfree (cmd->replacement);
 
       if (deprecate)
        cmd->flags |= (DEPRECATED_WARN_USER | CMD_DEPRECATED);
This page took 0.025199 seconds and 4 git commands to generate.