From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1367 invoked by alias); 4 Nov 2010 15:39:07 -0000 Received: (qmail 1141 invoked by uid 22791); 4 Nov 2010 15:39:05 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate1.uk.ibm.com (HELO mtagate1.uk.ibm.com) (194.196.100.161) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Nov 2010 15:38:59 +0000 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id oA4FcseB016451 for ; Thu, 4 Nov 2010 15:38:54 GMT Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oA4Fcvfi3293316 for ; Thu, 4 Nov 2010 15:38:57 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oA4FcsPn000382 for ; Thu, 4 Nov 2010 09:38:54 -0600 Received: from leonard.localnet (dyn-9-152-224-33.boeblingen.de.ibm.com [9.152.224.33]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oA4Fcnxx032406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 4 Nov 2010 09:38:54 -0600 From: Ken Werner To: Joel Brobecker Subject: Re: [patch] initial OpenCL C language support Date: Thu, 04 Nov 2010 15:39:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-22-generic-pae; KDE/4.5.1; i686; ; ) Cc: Tom Tromey , Eli Zaretskii , gdb-patches@sourceware.org References: <201010221920.30046.ken@linux.vnet.ibm.com> <201011031402.40132.ken@linux.vnet.ibm.com> <20101103152723.GA2445@adacore.com> In-Reply-To: <20101103152723.GA2445@adacore.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_GOt0M/xkoOWfM0X" Message-Id: <201011041638.46379.ken@linux.vnet.ibm.com> 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: 2010-11/txt/msg00087.txt.bz2 --Boundary-00=_GOt0M/xkoOWfM0X Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-length: 523 On Wednesday, November 03, 2010 4:27:23 pm Joel Brobecker wrote: > Patch looks good to me, at this point. It needs documentation > (doc/gdb.texinfo) and a NEWS entry. Can you send a separate patch > for this portion. Once the documentation is approved, you may commit > this patch as well. Ok, sounds good. This was also brought up by Eli Zaretskii a few days ago: http://sourceware.org/ml/gdb-patches/2010-10/msg00373.html Attached is a patch that adds a few bits to the documentation and the NEWS file. Regards Ken --Boundary-00=_GOt0M/xkoOWfM0X Content-Type: text/x-patch; charset="UTF-8"; name="opencl-lang-doc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="opencl-lang-doc.patch" Content-length: 3417 ChangeLog: 2010-11-04 Ken Werner * NEWS: Mention OpenCL C language support. doc/ChangeLog: 2010-11-04 Ken Werner * gdb.texinfo: (Summary) Add mention about OpenCL C language support. (OpenCL C): New node. Index: src/gdb/doc/gdb.texinfo =================================================================== --- src.orig/gdb/doc/gdb.texinfo 2010-11-03 17:06:48.000000000 +0100 +++ src/gdb/doc/gdb.texinfo 2010-11-04 14:46:30.000000000 +0100 @@ -221,6 +221,9 @@ Support for D is partial. For informati Support for Modula-2 is partial. For information on Modula-2, see @ref{Modula-2,,Modula-2}. +Support for OpenCL C is partial. For information on OpenCL C, see +@ref{OpenCL C,,OpenCL C}. + @cindex Pascal Debugging Pascal programs which use sets, subranges, file variables, or nested functions does not currently work. @value{GDBN} does not support @@ -11611,7 +11614,7 @@ being set automatically by @value{GDBN}. @node Supported Languages @section Supported Languages -@value{GDBN} supports C, C@t{++}, D, Objective-C, Fortran, Java, Pascal, +@value{GDBN} supports C, C@t{++}, D, Objective-C, Fortran, Java, OpenCL C, Pascal, assembly, Modula-2, and Ada. @c This is false ... Some @value{GDBN} features may be used in expressions regardless of the @@ -11632,6 +11635,7 @@ language reference or tutorial. * C:: C and C@t{++} * D:: D * Objective-C:: Objective-C +* OpenCL C:: OpenCL C * Fortran:: Fortran * Pascal:: Pascal * Modula-2:: Modula-2 @@ -12278,6 +12282,42 @@ the description of an object. However, with certain Objective-C libraries that have a particular hook function, @code{_NSPrintForDebugger}, defined. +@node OpenCL C +@subsection OpenCL C + +@cindex OpenCL C +This section provides information about @value{GDBN}s OpenCL C support. + +@menu +* OpenCL C Datatypes:: +* OpenCL C Expressions:: +* OpenCL C Operators:: +@end menu + +@node OpenCL C Datatypes +@subsubsection OpenCL C Datatypes + +@cindex OpenCL C Datatypes +@value{GDBN} supports the builtin scalar and vector datatypes specified +by OpenCL 1.1. In addition the half- and double-precision floating point +data types of the cl_khr_fp16 and cl_khr_fp64 OpenCL extensions are also +known to @value{GDBN}. + +@node OpenCL C Expressions +@subsubsection OpenCL C Expressions + +@cindex OpenCL C Expressions +@value{GDBN} supports accesses to vector components including the access as +lvalue where possible. Since OpenCL C is based on C99 most C expressions +supported by @value{GDBN} can be used as well. + +@node OpenCL C Operators +@subsubsection OpenCL C Operators + +@cindex OpenCL C Operators +@value{GDBN} supports the operators specified by OpenCL 1.1 for scalar and +vector data types. + @node Fortran @subsection Fortran @cindex Fortran-specific support in @value{GDBN} Index: src/gdb/NEWS =================================================================== --- src.orig/gdb/NEWS 2010-11-04 14:14:25.000000000 +0100 +++ src/gdb/NEWS 2010-11-04 14:18:33.000000000 +0100 @@ -3,6 +3,9 @@ *** Changes since GDB 7.2 +* OpenCL C + Initial support for the OpenCL C language has been integrated into GDB. + * Python scripting ** GDB values in Python are now callable if the value represents a --Boundary-00=_GOt0M/xkoOWfM0X--