Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - regardless of the programming language that was used to code the modules of http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Regardless of the programming language that was used to code the modules of
an application, line number information identifying the start of executable
statements will be available to the debugger (provided that the appropriate
symbolic debugging information has been included with the application's
execution module).  The debugger does not restrict the way in which line
number references are used in expressions.  A line number represents the
code address of an executable statement in a routine.  Not all line numbers
represent executable statements; thus some line numbers may not be valid in
an expression.  For example, source lines consisting of comments do not
represent executable statements.

The general format for a line number reference is:

      
     [ [image]@ ] [module_name] @ decimal_digits

The following are examples of references to executable statements.

Example:

     @36
     @@45
     @51
     @125
     hello@9
     @hello@9
     prog@hello@9
     otherprg@goodbye@9
     puzzle@50
     calendar@20
     SUB1@30

If the line number does not exist in the current module, it must be
qualified with its module name.  If it does not exist in the current image,
it must be qualified with the image name.  Line numbers are not necessarily
unique.  For example, an executable statement could occur at line number 20
in several modules.  The module name can always be used to uniquely identify
the line 20 in which we are interested.  In the above examples, we
explicitly refer to line 20 in the module "calendar".  When the module name
is omitted, the current module is assumed.

Note:
    Line number debugging information is included in an executable image if
    you request it of the linker.  However, line number information must be
    present in your object files.  The WATCOM C, C++ and FORTRAN 77
    compilers can include line number debugging information in object files
    by specifying the appropriate compiler option.  See
    Preparing a Program to be Debugged.  You can request line number
    debugging information when assembling assembly language source files
    using Microsoft's MASM Version 5.  The "Zd" option must be specified on
    the command line.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson