]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/maint.c
* breakpoint.c (catch_syscall_split_args): Use skip_spaces.
[thirdparty/binutils-gdb.git] / gdb / maint.c
index 467e46b69cb9b07f47cc3d6be5cf24282f6b14e1..b835db6a5482fb874ee89fdfbf401a3542697e6e 100644 (file)
@@ -38,6 +38,7 @@
 #include "gdb_assert.h"
 
 #include "cli/cli-decode.h"
+#include "cli/cli-utils.h"
 
 extern void _initialize_maint_cmds (void);
 
@@ -460,8 +461,7 @@ maintenance_translate_address (char *arg, int from_tty)
       if (*p == '\000')                /* End of command?  */
        error (_("Need to specify <section-name> and <address>"));
       *p++ = '\000';
-      while (isspace (*p))
-       p++;                    /* Skip whitespace.  */
+      p = skip_spaces (p);
 
       ALL_OBJSECTIONS (objfile, sect)
       {