]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.texinfo (Fortran): Add some words about Fortran debugging.
authorWu Zhou <woodzltc@cn.ibm.com>
Wed, 23 Nov 2005 02:35:06 +0000 (02:35 +0000)
committerWu Zhou <woodzltc@cn.ibm.com>
Wed, 23 Nov 2005 02:35:06 +0000 (02:35 +0000)
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index e757cd7b90bd2e40697fb1049cf7fc48d7d82a03..c057950343a13918982bafd9131ce59b50d79eed 100644 (file)
@@ -1,3 +1,7 @@
+2005-11-23  Wu Zhou  <woodzltc@cn.ibm.com>
+
+       * gdb.texinfo (Fortran): Add some words about Fortran debugging.
+
 2005-11-16  Andrew Stubbs  <andrew.stubbs@st.com>
 
        * gdb.texinfo (User-defined commands): Add $argc. Add missing 'end'.
index bd65b9e862e1c086c8e9e35a8862c598fa9411c6..af8a83fa38abcf66b4873545ea7f9f27ee22b6ff 100644 (file)
@@ -9124,6 +9124,59 @@ function, @code{_NSPrintForDebugger}, defined.
 @subsection Fortran
 @cindex Fortran-specific support in @value{GDBN}
 
+@value{GDBN} can be used to debug programs written in Fortran, but it
+currently supports only the features of Fortran 77 language.
+
+@cindex trailing underscore, in Fortran symbols
+Some Fortran compilers (@sc{gnu} Fortran 77 and Fortran 95 compilers
+among them) append an underscore to the names of variables and
+functions.  When you debug programs compiled by those compilers, you
+will need to refer to variables and functions with a trailing
+underscore.
+
+@menu
+* Fortran Operators::           Fortran operators and expressions
+* Fortran Defaults::            Default settings for Fortran
+* Special Fortran commands::    Special @value{GDBN} commands for Fortran
+@end menu
+
+@node Fortran Operators
+@subsubsection Fortran operators and expressions
+
+@cindex Fortran operators and expressions
+
+Operators must be defined on values of specific types.  For instance,
+@code{+} is defined on numbers, but not on characters or other non-
+arithmetic types.  Operators are often defined on groups of types.
+
+@table @code
+@item **
+The exponentiation operator. It raises the first operand to the power
+of the second one.
+
+@item :
+The range operator.  Normally used in the form of array(low:high) to
+represent a section of array.
+@end table
+
+@node Fortran Defaults
+@subsubsection Fortran Defaults
+
+@cindex Fortran Defaults
+
+Fortran symbols are usually case-insensitive, so @value{GDBN} by
+default uses case-insensitive matches for Fortran symbols.  You can
+change that with the @samp{set case-insensitive} command, see
+@ref{Symbols}, for the details.
+
+@node Special Fortran commands
+@subsubsection Special Fortran commands
+
+@cindex Special Fortran commands
+
+@value{GDBN} had some commands to support Fortran specific feature,
+such as common block displaying.
+
 @table @code
 @cindex @code{COMMON} blocks, Fortran
 @kindex info common
@@ -9134,11 +9187,6 @@ all @code{COMMON} blocks visible at current program location are
 printed.
 @end table
 
-Fortran symbols are usually case-insensitive, so @value{GDBN} by
-default uses case-insensitive matches for Fortran symbols.  You can
-change that with the @samp{set case-insensitive} command, see
-@ref{Symbols}, for the details.
-
 @node Pascal
 @subsection Pascal