From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23929 invoked by alias); 27 May 2009 18:12:44 -0000 Received: (qmail 23915 invoked by uid 22791); 27 May 2009 18:12:42 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 May 2009 18:12:35 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M9Nc3-00067F-3D for gdb-patches@sources.redhat.com; Wed, 27 May 2009 18:12:27 +0000 Received: from entropy.qnx.com ([209.226.137.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 May 2009 18:12:27 +0000 Received: from aristovski by entropy.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 May 2009 18:12:27 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: [patch] nto-procfs.c Date: Wed, 27 May 2009 18:12:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020208080402030404030005" User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00583.txt.bz2 This is a multi-part message in MIME format. --------------020208080402030404030005 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 193 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. --------------020208080402030404030005 Content-Type: text/x-patch; name="nto-procfs.c-invalidptr-20090527.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="nto-procfs.c-invalidptr-20090527.diff" Content-length: 557 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; --------------020208080402030404030005--