12.07.2015 Views

LF95 Linux User's Guide - Lahey Computer Systems

LF95 Linux User's Guide - Lahey Computer Systems

LF95 Linux User's Guide - Lahey Computer Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4 Command-Line Debugging with fdbIf core is present in the current directory, or if corefile is specified, then fdb will start withthe current line of code being the one that caused the abnormal termination, and the currentfile being the one that contains that line of code. If core or corefile is not a dump of exefile,then there will be no debug information available.Otherwise, if no core file is available or corefile does not exist, then fdb starts with the currentline of code being the first executable line of the file containing the main program.Communicating with fdbVariablesVariables are specified in fdb in the same manner as they are specified in Fortran 95.In Fortran 95, a derived-type (i.e., structure) component is specified as variable%member.In Fortran 95, an array element is specified as variable(member,member,...). Note that inFortran 95, omission of array subscripts implies a reference to the entire array. Listing ofarray contents in Fortran 95 is limited by the printelements parameter (see “MiscellaneousControls” on page 79).ValuesNumeric values can be of types integer, real, unsigned octal, or unsigned hexadecimal.Unsigned octal values must begin with a 0 and unsigned hexadecimal values must begin with0x. Values of type real can have an exponent, for example 3.14e10.In a Fortran 95 program, values of type complex, logical, and character are also allowed. Valuesof type complex are represented as (real-part,imaginary-part). Character data isrepresented as " character string " (the string is delimited by quotation marks, i.e., ascii 34).Values of type logical are represented as .t. or .f..AddressesAddresses can be represented as unsigned decimal numbers, unsigned octal numbers (whichmust start with 0), or unsigned hexadecimal numbers (which must start with 0x or 0X). Thefollowing examples show print commands with address specifications.memprint 1024 (The content of the area addressed by 0x0400 is displayed.)memprint 01024 (The content of the area addressed by 0x0214 is displayed.)memprint 0x1024 (The content of the area addressed by 0x1024 is displayed.)66 <strong>Lahey</strong>/Fujitsu <strong>Linux</strong>64 Fortran User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!