From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32674 invoked by alias); 7 Jan 2004 01:34:41 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32666 invoked from network); 7 Jan 2004 01:34:40 -0000 Received: from unknown (HELO mail-out3.apple.com) (17.254.13.22) by sources.redhat.com with SMTP; 7 Jan 2004 01:34:40 -0000 Received: from mailgate3.apple.com (a17-128-100-68.apple.com [17.128.100.68]) by mail-out3.apple.com (8.12.10/8.12.9) with ESMTP id i071YeFt024741 for ; Tue, 6 Jan 2004 17:34:40 -0800 (PST) Received: from relay2.apple.com (relay2.apple.com) by mailgate3.apple.com (Content Technologies SMTPRS 4.3.6) with ESMTP id ; Tue, 6 Jan 2004 17:34:40 -0800 Received: from [17.201.22.21] (moleja.apple.com [17.201.22.21]) by relay2.apple.com (8.12.10/8.12.9) with ESMTP id i071Ybgv018324; Wed, 7 Jan 2004 01:34:37 GMT Mime-Version: 1.0 (Apple Message framework v609) To: Adam Fedor , Eli Zaretskii Message-Id: <9E0EDFCC-40B1-11D8-B832-000393D457E2@apple.com> Content-Type: multipart/mixed; boundary=Apple-Mail-2-642780791 Cc: gdb-patches@sources.redhat.com Subject: RFA/doc: couple of small Obj-C documentation tweaks From: Jason Molenda Date: Wed, 07 Jan 2004 01:34:00 -0000 X-SW-Source: 2004-01/txt/msg00155.txt.bz2 --Apple-Mail-2-642780791 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Content-length: 364 Hi Eli & Adam, I was looking at the gdb docs today and saw a couple of small problems with the Objective-C section. OK to commit? 2004-01-06 Jason Molenda (jmolenda@apple.com) * doc/gdb.texinfo (Objective-C): "methodName" typeo. Add @code markup around var names from examples. Minor cleanup to _NSPrintForDebugger explanation. --Apple-Mail-2-642780791 Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="pa.txt" Content-Disposition: attachment; filename=pa.txt Content-length: 1765 2004-01-06 Jason Molenda (jmolenda@apple.com) * doc/gdb.texinfo (Objective-C): "methodName" typeo. Add @code markup around var names from examples. Minor cleanup to _NSPrintForDebugger explanation. Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.185 diff -u -p -r1.185 gdb.texinfo --- gdb.texinfo 28 Oct 2003 22:04:47 -0000 1.185 +++ gdb.texinfo 7 Jan 2004 01:01:33 -0000 @@ -8484,7 +8484,7 @@ A fully qualified Objective-C method nam where the minus sign is used to indicate an instance method and a plus sign (not shown) is used to indicate a class method. The -class name @var{Class} and method name @var{methoName} are enclosed in +class name @var{Class} and method name @var{methodName} are enclosed in brackets, similar to the way messages are specified in Objective-C source code. For example, to set a breakpoint at the @code{create} instance method of class @code{Fruit} in the program currently being debugged, enter: @@ -8532,12 +8532,12 @@ print -[object hash] @end smallexample @cindex print an Objective-C object description -will tell gdb to send the -hash message to object and print the +will tell gdb to send the @code{hash} message to @code{object} and print the result. Also an additional command has been added, @code{print-object} or @code{po} for short, which is meant to print the description of an object. However, this command may only work with certain Objective-C -libraries that have a particular hook function, called -@code{_NSPrintForDebugger} defined. +libraries that have a particular hook function, +@code{_NSPrintForDebugger}, defined. @node Modula-2, , Objective-C, Support @subsection Modula-2 --Apple-Mail-2-642780791--