DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
No More Memory Leaks - fs(C++)

The Marriage of fs and Debuggers

fs is implemented as a collection of debugger-independent library routines which are linked in with the application being debugged; that is, fs runs in ``application space,'' not in ``debugger space.'' This makes it possible for fs to work with any debugger, or even without a debugger, that is, when debugging with printf's. For example:

   extern void foo();
   main() {
       // ...
       fs_showall();  // see what's on the freestore
       // ...
       fs_mark();     // set a mark now
       foo();
       fs_since();    // see what foo() forgot to delete
       // ...
   }

However, fs interfaces with any source-level debugger, including debug(CP), that permits calls to C language functions from the debug session.


Next topic: fs and debug
Previous topic: Freestore events

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005