2004-01-08 Jason Molenda <jmolenda@apple.com>

Eli Zaretskii  <eliz@is.elta.co.il>

        * gdb.texinfo: Update copyright.
        (Objective-C): "methodName" typeo fixed.  Add @code/@var markup
        around names, as appropriate.  Minor syntax cleanup of
        _NSPrintForDebugger explanation.  Two spaces after periods.
        GDBN used instead of lit. "gdb".  Index entries added for
        print-object and _NSPrintForDebugger.  @noindent added in one spot.
This commit is contained in:
Jason Molenda
2004-01-08 22:47:00 +00:00
parent 06ded8b85a
commit c552b3bb47
2 changed files with 36 additions and 21 deletions

View File

@ -1,3 +1,13 @@
2004-01-08 Jason Molenda <jmolenda@apple.com>
Eli Zaretskii <eliz@is.elta.co.il>
* gdb.texinfo: Update copyright.
(Objective-C): "methodName" typeo fixed. Add @code/@var markup
around names, as appropriate. Minor syntax cleanup of
_NSPrintForDebugger explanation. Two spaces after periods.
GDBN used instead of lit. "gdb". Index entries added for
print-object and _NSPrintForDebugger. @noindent added in one spot.
2003-11-11 Elena Zannoni <ezannoni@redhat.com> 2003-11-11 Elena Zannoni <ezannoni@redhat.com>
* stabs.texinfo: Add dircategory and direntry commands. * stabs.texinfo: Add dircategory and direntry commands.

View File

@ -1,6 +1,6 @@
\input texinfo @c -*-texinfo-*- \input texinfo @c -*-texinfo-*-
@c Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, @c Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998,
@c 1999, 2000, 2001, 2002, 2003 @c 1999, 2000, 2001, 2002, 2003, 2004
@c Free Software Foundation, Inc. @c Free Software Foundation, Inc.
@c @c
@c %**start of header @c %**start of header
@ -52,7 +52,7 @@ This is the @value{EDITION} Edition, of @cite{Debugging with
Version @value{GDBVN}. Version @value{GDBVN}.
Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998,@* Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998,@*
1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or under the terms of the GNU Free Documentation License, Version 1.1 or
@ -115,7 +115,7 @@ This file describes @value{GDBN}, the @sc{gnu} symbolic debugger.
This is the @value{EDITION} Edition, for @value{GDBN} Version This is the @value{EDITION} Edition, for @value{GDBN} Version
@value{GDBVN}. @value{GDBVN}.
Copyright (C) 1988-2003 Free Software Foundation, Inc. Copyright (C) 1988-2004 Free Software Foundation, Inc.
@menu @menu
* Summary:: Summary of @value{GDBN} * Summary:: Summary of @value{GDBN}
@ -8482,12 +8482,13 @@ A fully qualified Objective-C method name is specified as
-[@var{Class} @var{methodName}] -[@var{Class} @var{methodName}]
@end smallexample @end smallexample
where the minus sign is used to indicate an instance method and a plus where the minus sign is used to indicate an instance method and a
sign (not shown) is used to indicate a class method. The plus sign (not shown) is used to indicate a class method. The class
class name @var{Class} and method name @var{methoName} are enclosed in name @var{Class} and method name @var{methodName} are enclosed in
brackets, similar to the way messages are specified in Objective-C source brackets, similar to the way messages are specified in Objective-C
code. For example, to set a breakpoint at the @code{create} instance method of source code. For example, to set a breakpoint at the @code{create}
class @code{Fruit} in the program currently being debugged, enter: instance method of class @code{Fruit} in the program currently being
debugged, enter:
@smallexample @smallexample
break -[Fruit create] break -[Fruit create]
@ -8500,10 +8501,10 @@ enter:
list +[NSText initialize] list +[NSText initialize]
@end smallexample @end smallexample
In the current version of GDB, the plus or minus sign is required. In In the current version of @value{GDBN}, the plus or minus sign is
future versions of GDB, the plus or minus sign will be optional, but you required. In future versions of @value{GDBN}, the plus or minus
can use it to narrow the search. It is also possible to specify just a sign will be optional, but you can use it to narrow the search. It
method name: is also possible to specify just a method name:
@smallexample @smallexample
break create break create
@ -8524,20 +8525,24 @@ clear -[NSWindow makeKeyAndOrderFront:]
@node The Print Command with Objective-C @node The Print Command with Objective-C
@subsubsection The Print Command With Objective-C @subsubsection The Print Command With Objective-C
@kindex print-object
@kindex po @r{(@code{print-object})}
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 @smallexample
print -[object hash] print -[@var{object} hash]
@end smallexample @end smallexample
@cindex print an Objective-C object description @cindex print an Objective-C object description
will tell gdb to send the -hash message to object and print the @cindex @code{_NSPrintForDebugger}, and printing Objective-C objects
result. Also an additional command has been added, @code{print-object} @noindent
or @code{po} for short, which is meant to print the description of an will tell @value{GDBN} to send the @code{hash} message to @var{object}
object. However, this command may only work with certain Objective-C and print the result. Also, an additional command has been added,
libraries that have a particular hook function, called @code{print-object} or @code{po} for short, which is meant to print
@code{_NSPrintForDebugger} defined. 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 @node Modula-2, , Objective-C, Support
@subsection Modula-2 @subsection Modula-2