DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using SCODB on SVR5

Source code line numbers

SCODB can display source code line numbers in the disassembly listing. To enable this feature, recompile the desired source modules with the -g option to the cc command. With some compilers, code compiled with the -g option is not optimized.

After the kernel has been successfully relinked, the source line numbers automatically appear when disassembling a recompiled module, as the following example shows:

   s_trap+39       call    ageprocess	; line 222
   s_trap+3E       cmpb    agecntl,0	; line 223
   s_trap+45       je      s_trap+6C
   s_trap+47       movl    %eax,tune	; line 224
Use the ``/'' and ``?'' pattern search commands to position yourself at a particular source line when in the disassembly mode. For example, typing /line<Space>238 searches forward for the next instruction marked as source line 238. Note that this will fail if there is no instruction associated with that line number.
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005