Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Aleksandar Ristovski <aristovski@qnx.com>
To: gdb-patches@sources.redhat.com
Subject: [patch] nto-procfs.c
Date: Wed, 27 May 2009 18:12:00 -0000	[thread overview]
Message-ID: <gvjvq0$q2t$1@ger.gmane.org> (raw)

[-- 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;

             reply	other threads:[~2009-05-27 18:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27 18:12 Aleksandar Ristovski [this message]
2009-05-27 18:22 ` Pedro Alves
2009-05-27 18:30   ` Aleksandar Ristovski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gvjvq0$q2t$1@ger.gmane.org' \
    --to=aristovski@qnx.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox