This is the mail archive of the gdb-patches@sourceware.org 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]

[patch] nto-procfs.c


Hello,

The attached patch fixes a bug in QNX portion of gdb; wrong pointer was being passed to devctl.

Thanks,

Aleksandar


ChangeLog:


* nto-procfs.c (get_regset): Pass correct pointer.

Index: gdb/nto-procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-procfs.c,v
retrieving revision 1.43
diff -u -p -r1.43 nto-procfs.c
--- gdb/nto-procfs.c	21 May 2009 15:48:41 -0000	1.43
+++ gdb/nto-procfs.c	27 May 2009 18:05:50 -0000
@@ -1159,7 +1159,7 @@ get_regset (int regset, char *buf, int b
     default:
       return -1;
     }
-  if (devctl (ctl_fd, dev_get, &buf, bufsize, regsize) != EOK)
+  if (devctl (ctl_fd, dev_get, buf, bufsize, regsize) != EOK)
     return -1;
 
   return dev_set;

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