From: Jason Molenda <jmolenda@apple.com>
To: Eli Zaretskii <eliz@elta.co.il>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA/doc: couple of small Obj-C documentation tweaks
Date: Wed, 07 Jan 2004 23:57:00 -0000 [thread overview]
Message-ID: <44249748-416D-11D8-9715-000393D457E2@apple.com> (raw)
In-Reply-To: <u65fob7no.fsf@elta.co.il>
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
Hi Eli,
Thanks for spotting the additional corrections. I'm inexperienced with
texinfo so I want to run the patch past you before I commit. makeinfo
and texi2html don't give any warnings when processing this - I believe
it to be correct.
I re-fmt(1)'ed a couple of paragraphs that got too wide so the diff
looks larger than it really is.
[-- Attachment #2: pa.txt --]
[-- Type: text/plain, Size: 3582 bytes --]
2004-01-07 Jason Molenda (jmolenda@apple.com)
* doc/gdb.texinfo (Objective-C: "methodName" typeo.
Add @code/@var markup around names, as needed.
Minor syntax cleanup of _NSPrintForDebugger explanation.
Two spaces after periods. GDBN used instead of lit. "gdb".
Index entries added for print-object and _NSPrintForDebugger.
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 23:54:25 -0000
@@ -8482,12 +8482,13 @@ A fully qualified Objective-C method nam
-[@var{Class} @var{methodName}]
@end smallexample
-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
-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:
+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{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:
@smallexample
break -[Fruit create]
@@ -8500,10 +8501,10 @@ enter:
list +[NSText initialize]
@end smallexample
-In the current version of GDB, the plus or minus sign is required. In
-future versions of GDB, the plus or minus sign will be optional, but you
-can use it to narrow the search. It is also possible to specify just a
-method name:
+In the current version of @value{GDBN}, the plus or minus sign is
+required. In future versions of @value{GDBN}, the plus or minus
+sign will be optional, but you can use it to narrow the search. It
+is also possible to specify just a method name:
@smallexample
break create
@@ -8524,20 +8525,23 @@ clear -[NSWindow makeKeyAndOrderFront:]
@node The Print Command with Objective-C
@subsubsection The Print Command With Objective-C
+@kindex print-object
+@kindex po @r{(@code{print-object})}
+@kindex _NSPrintForDebugger
-The print command has also been extended to accept methods. For example:
+The print command has also been extended to accept methods. For example:
@smallexample
-print -[object hash]
+print -[@var{object} hash]
@end smallexample
@cindex print an Objective-C object description
-will tell gdb to send the -hash message to 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.
+will tell @value{GDBN} to send the @code{hash} message to @var{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, @code{_NSPrintForDebugger}, defined.
@node Modula-2, , Objective-C, Support
@subsection Modula-2
next prev parent reply other threads:[~2004-01-07 23:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-07 1:34 Jason Molenda
2004-01-07 4:12 ` Adam Fedor
2004-01-07 6:20 ` Eli Zaretskii
2004-01-07 23:57 ` Jason Molenda [this message]
2004-01-08 16:42 ` Eli Zaretskii
2004-01-08 22:48 ` [Committed] " Jason Molenda
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=44249748-416D-11D8-9715-000393D457E2@apple.com \
--to=jmolenda@apple.com \
--cc=eliz@elta.co.il \
--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