280 likes | 294 Views
Discover how to use the XINFO-C scanner to analyze programs, functions, variables, files, DB2 access, and more. Get insights into program structure and dependencies for efficient development.
E N D
About this Presentation This PowerPoint gives you a short overview about how to work with XINFO - C scanner. This button can be used to jump to specific slides in this presentation. General Information Click on this symbol to jump to the overview slide
XINFO and C The XINFO C scanner delivers following information: • Which proprams are using which includes ? • Which programs are using which functions ? • Which programs are using a certain type ? • Which programs are calling external programs ? • Which programs are using which variables ? • Which programs are deleting rows from a DB2 table ? • ….
C - Displays The displays for C
C – General Info Selection panel “General Info” ..scroll up/down for more selection fields…
C – General Info Resulting “General Info”
C - Includes Search for Includes, e.g. all programs that include “errno.h”
C - Includes These programs are using “assert.h” Direct read access to several sources
C - System Search for all programs that are using system calls
C - System These programs are using “getKundename”
C - Functions Function “getKundename” causes problems. Where is it defined?
C - Functions The function is defined in member “MINXI01”
C – Function Call And now you want to know which programs are using this function: “Called Function” gives you the answer:
C – Function Call Ok, no problem: The function is only used in two members
C – Files And now you want to know which programs are using this function: “Called Function” gives you the answer:
C - Files These programs are writing to the console
C - Files Use the “group” function to get the members (and not all lines)
C - Files All members where “stdout” is used, column Count shows you how often
C – DB2 Access Which programs are updating table “VCONA”?
C – DB2 Access Program DSN8CC1 is the only program that updates table “*Konto”
C - Variables Which variables are declared, but not used?
C - Variables The result shows all members (lines) where unused variables are declared
C - Types Which programs are using streams?
C - Types Here are all lines where bool are used…
C - Types …use the group functions to get a list of all members…
C - Types …here is a list of all members where streams are used