Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bcheck(1) — Sun WorkShop 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dbx(1)

debugger(1)

BCHECK(1)  —  USER COMMANDS

NAME

bcheck − batch utility for Runtime Checking (SPARC only)

SYNOPSIS

bcheck [ −access | −all | −leaks ] [ −o logfile ] [ −s script ] program [ args ]

DESCRIPTION

bcheck is a batch interface to the Runtime Checking (RTC) feature of dbx(1).  It is a shell script which runs the program under dbx, with the arguments specified by args, if any. The RTC error output will be placed in logfile, if specified; otherwise the file program.errs will be used by default.  If this file already exists, its contents will be overwritten.  bcheck can perform memory leak checking, memory access checking, or both.  The default is to perform leak checking only. 

OPTIONS

−access
Perform memory access checking only.

−all Perform both memory access checking and memory leak checking. 

−leaks
Perform memory leak checking only. This is the default.

−o logfile
Place the error output in logfile. Default is the file program.errs. 

−s script
Before executing the program, read in the dbx commands contained in the file script. This file typically contains commands like suppress and dbxenv to tailor the error output of bcheck.

EXAMPLES

Perform leaks checking only on hello:

bcheck hello

Perform access checking only on mach with the argument 5:

bcheck -access mach 5

Perform both access checking and leaks checking on cc:

bcheck -all cc -c prog.c

Perform access checking on foo, suppressing all rui errors. 

echo "suppress rui" > foo.sup
bcheck -access -s foo.sup foo 1 2 3

ENVIRONMENT

DBX If set, indicates the full pathname of the dbx to run.  Otherwise, dbx is assumed to be in the same directory as bcheck. 

SEE ALSO

dbx(1), debugger(1), and the Runtime Checking chapter of Debugging a Program

Sun Release 4.1  —  Last change: 26 Jul 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026