This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARI


Committed.

2003-07-18  Kris Warkentin  <kewarken@qnx.com>

 * nto-procfs.c: Clean ARI hits.  Change #include <..> to
 #include "...".
 (procfs_meminfo): Change strerror to safe_strerror.
 (procfs_can_run): Remove K&R badness.

Index: nto-procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-procfs.c,v
retrieving revision 1.2
diff -u -r1.2 nto-procfs.c
--- nto-procfs.c        8 Jul 2003 15:36:15 -0000       1.2
+++ nto-procfs.c        18 Jul 2003 17:09:23 -0000
@@ -30,7 +30,7 @@
 #include <sys/procfs.h>
 #include <sys/neutrino.h>
 #include <sys/syspage.h>
-#include <gdb_dirent.h>
+#include "gdb_dirent.h"
 #include <sys/netmgr.h>

 #include "gdb_string.h"
@@ -375,7 +375,7 @@
   err = devctl (ctl_fd, DCMD_PROC_MAPINFO, NULL, 0, &num);
   if (err != EOK)
     {
-      printf ("failed devctl num mapinfos - %d (%s)\n", err, strerror
(err));
+      printf ("failed devctl num mapinfos - %d (%s)\n", err, safe_strerror
(err));
       return;
     }

@@ -389,7 +389,7 @@
                * sizeof (procfs_mapinfo), &num);
   if (err != EOK)
     {
-      printf ("failed devctl mapinfos - %d (%s)\n", err, strerror (err));
+      printf ("failed devctl mapinfos - %d (%s)\n", err, safe_strerror
(err));
       xfree (mapinfos);
       return;
     }
@@ -494,7 +494,7 @@

 /* Mark our target-struct as eligible for stray "run" and "attach"
commands.  */
 static int
-procfs_can_run ()
+procfs_can_run (void)
 {
   return 1;
 }

----- Original Message ----- 
From: "Andrew Cagney" <ac131313@redhat.com>
To: "Jim Blandy" <jimb@redhat.com>; "Mark Kettenis" <kettenis@chello.nl>;
"Kris Warkentin" <kewarken@qnx.com>
Cc: <gdb-patches@sources.redhat.com>
Sent: Friday, July 18, 2003 12:41 PM
Subject: ARI


> Note that both the mainline and branch are picking things up.
> http://sources.redhat.com/gdb/current/ari/
> http://sources.redhat.com/gdb/ari/
> I'll fix the opaque ones (they are tricky).
>
> Andrew
>
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]