]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix various GCC warnings.
authorAndrew Cagney <cagney@redhat.com>
Wed, 29 Mar 2000 00:51:17 +0000 (00:51 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 29 Mar 2000 00:51:17 +0000 (00:51 +0000)
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/maint.c

index 44d8c63a088e511d531d88c765fe93bedf1b4f8f..2e333f883acc5b0a5c97c5a73cc6b7bda2bb0ffe 100644 (file)
@@ -1,3 +1,10 @@
+Wed Mar 29 10:16:35 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * breakpoint.h (remove_hw_watchpoints): Add declaration.
+       * breakpoints.c (remove_hw_watchpoints): Update.
+       * maint.c (maintenance_do_deprecate): Avoid assignment within IF
+       condition.
+
 2000-03-28  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
 
        breakpoint.c, breakpoint.h (remove_hw_watchpoints):  New function.
index 768a67f7534dce4987d0e2f9b8c1d54a9c7f5ea0..1efa23bb5aa970f5d1ac27cd7dcdf36530a082eb 100644 (file)
@@ -1096,7 +1096,7 @@ remove_breakpoints ()
 }
 
 int
-remove_hw_watchpoints ()
+remove_hw_watchpoints (void)
 {
   register struct breakpoint *b;
   int val;
index f8358a9fa12922ee4045ad0b9383abc2ccbdcb17..1b4e02aa7b20396b5e2db8019ca97c7d23eb2aaf 100644 (file)
@@ -693,4 +693,8 @@ extern struct breakpoint *set_breakpoint_sal PARAMS ((struct symtab_and_line));
    deletes all breakpoints. */
 extern void delete_command (char *arg, int from_tty);
 
+/* Pull all H/W watchpoints from the target. Return non-zero if the
+   remove fails. */
+extern int remove_hw_watchpoints (void);
+
 #endif /* !defined (BREAKPOINT_H) */
index dd974b7d0d5d672fff7ca852538ccd43f5067b59..8a8df594809b7eb82f6527e6e9c1989934f93568 100644 (file)
@@ -425,10 +425,12 @@ maintenance_do_deprecate (char *text, int deprecate)
   if (deprecate)
     {
       /* look for a replacement command */
-      if (start_ptr = strchr (text, '\"'))
+      start_ptr = strchr (text, '\"');
+      if (start_ptr != NULL)
        {
          start_ptr++;
-         if (end_ptr = strrchr (start_ptr, '\"'))
+         end_ptr = strrchr (start_ptr, '\"');
+         if (end_ptr != NULL)
            {
              len = end_ptr - start_ptr;
              start_ptr[len] = '\0';