This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] nto-procfs.c
- From: Aleksandar Ristovski <aristovski at qnx dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 27 May 2009 14:12:16 -0400
- Subject: [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;