Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] nto-procfs.c
@ 2009-05-27 18:12 Aleksandar Ristovski
  2009-05-27 18:22 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Aleksandar Ristovski @ 2009-05-27 18:12 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

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.


[-- Attachment #2: nto-procfs.c-invalidptr-20090527.diff --]
[-- Type: text/x-patch, Size: 557 bytes --]

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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-27 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-27 18:12 [patch] nto-procfs.c Aleksandar Ristovski
2009-05-27 18:22 ` Pedro Alves
2009-05-27 18:30   ` Aleksandar Ristovski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox