Misc small fixes for problems uncovered by prototyping.
authorFred Fish <fnf@specifix.com>
Fri, 24 Jan 1992 06:52:43 +0000 (06:52 +0000)
committerFred Fish <fnf@specifix.com>
Fri, 24 Jan 1992 06:52:43 +0000 (06:52 +0000)
gdb/ChangeLog
gdb/procfs.c

index 78e0d4e8785efd990692fe4d41c90459a683aac3..3b3bde3cc4b5d4f9f8b68294bd5689967681bbe2 100644 (file)
@@ -1,5 +1,11 @@
 Thu Jan 23 22:24:43 1992  Fred Fish  (fnf at cygnus.com)
 
+       * procfs.c
+       (child_xfer_memory): Takes pointer to a struct, not entire struct.
+       (inferior_proc_init):  Fix non-ANSI version of args.
+       (attach):  Call print_sys_errmsg with correct number of args.
+       (mappingflags):  Make static, does not need to be global.
+
        * i386-tdep.c (i386_frame_num_args):  Takes a pointer to a struct
        not the entire struct itself.
 
index 2483f3d65a35a5036eeb4e5297a2b0b1ea074191..43aa46f8a4a026851c8f7b143a0ed3d24ead40d2 100644 (file)
@@ -263,7 +263,7 @@ DEFUN(child_xfer_memory, (memaddr, myaddr, len, dowrite, target),
       char *myaddr AND
       int len AND
       int dowrite AND
-      struct target_ops target /* ignored */)
+      struct target_ops *target /* ignored */)
 {
   int nbytes = 0;
 
@@ -376,7 +376,7 @@ NOTES
  */
 
 void
-DEFUN(inferior_proc_init, (int pid),
+DEFUN(inferior_proc_init, (pid),
       int pid)
 {
   if (!open_proc_file (pid, &pi))
@@ -674,11 +674,11 @@ DEFUN(attach, (pid),
   prdelset (&pi.prrun.pr_fault, FLTPAGE);
   if (ioctl (pi.fd, PIOCSFAULT, &pi.prrun.pr_fault))
     {
-      print_sys_errmsg ("PIOCSFAULT failed");
+      print_sys_errmsg ("PIOCSFAULT failed", errno);
     }
   if (ioctl (pi.fd, PIOCSTRACE, &pi.prrun.pr_trace))
     {
-      print_sys_errmsg ("PIOCSTRACE failed");
+      print_sys_errmsg ("PIOCSTRACE failed", errno);
     }
   attach_flag = 1;
   return (pid);
@@ -1189,8 +1189,9 @@ DEFUN(open_proc_file, (pid, pip),
   return (pip -> valid);
 }
 
-char *mappingflags (flags)
-long flags;
+static char *
+DEFUN (mappingflags, (flags),
+       long flags)
 {
   static char asciiflags[7];
   
This page took 0.051236 seconds and 4 git commands to generate.