Log/Example of running standalone gdb on "official offline example", ExampleMyModule package. This was done on fcdflnx1.fnal.gov on February 17, 2002. Not that non-standard definitions of gdb and of VAL_DATA_DIR are needed. The former is because no official Fermilab gdb version works as of today, the second is needed in order to make the offline example ExampleMyModule work with an offline version other then development. ------------------------------------------------------- belforte@fcdflnx1/~ > setup cdfsoft2 4.2.0 belforte@fcdflnx1/~ > cd ana/420 belforte@fcdflnx1/~...420 > ls ExampleMyModule/ bin@ include/ man/ results/ tmp@ GNUmakefile doc/ lib@ output.hbook shlib@ ups/ belforte@fcdflnx1/~...420 > grep psi ExampleMyModule/run.tcl input file $env(VAL_DATA_DIR)/jpsi_skim.dst belforte@fcdflnx1/~...420 > ls $VAL_DATA_DIR/jpsi_skim.dst ls: /cdf/code/cdfsoft/dist/valfiles/4.2.0/jpsi_skim.dst: No such file or directory belforte@fcdflnx1/~...420 > setenv VAL_DATA_DIR /cdf/code/cdfsoft/dist/valfiles/data belforte@fcdflnx1/~...420 > ls $VAL_DATA_DIR/jpsi_skim.dst /cdf/code/cdfsoft/dist/valfiles/data/jpsi_skim.dst belforte@fcdflnx1/~...420 > ~kennedy/Debuggers/gdbkcc-5.0k3a-frhlinux6.1 bin/Linux2-KCC_4_0/ExampleMyModule_test GNU gdb 5.0 + KCC patch level 3 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) bre main Breakpoint 1 at 0x841e728: file /home/cdfsoft/dist/packages/Framework/V00-06-98/src/APPMain.cc, line 90. (gdb) run ExampleMyModule/run.tcl Starting program: /cdf/home/belforte/ana/420/bin/Linux2-KCC_4_0/ExampleMyModule_test ExampleMyModule/run.tcl Breakpoint 1, main (argc=2, argv=0xbfffbd44) at /home/cdfsoft/dist/packages/Framework/V00-06-98/src/APPMain.cc:90 90 { (gdb) bre 'ExampleTrackAnalysis::event(EventRecord *)' Breakpoint 2 at 0x400203ac: file /cdf/home/belforte/ana/420/ExampleMyModule/ExampleTrackAnalysis.cc, line 111. (gdb) cont Continuing. Release version = 4.2.0 .... omissis ... SiAlignmentManager: turning off alignments ... source = none SiAlignmentManager at beginRun: no DB requested Breakpoint 2, ExampleTrackAnalysis::event (this=0xaa91b80, __T162875824=0xbfffa85c, anEvent=0xab4e548) at /cdf/home/belforte/ana/420/ExampleMyModule/ExampleTrackAnalysis.cc:111 111 bool filter_pass = false; (gdb) next 115 CdfTrackView_h hView; // This is the handle for the "view." (gdb) n 116 if (CdfTrackView::defTracks(hView) == CdfTrackView::OK) { (gdb) n 119 const CdfTrackView::CollType & tracks = hView->contents(); (gdb) n 122 for (CdfTrackView::const_iterator it = tracks.begin(); (gdb) n 124 const CdfTrack & trk = **it; (gdb) n 127 float pt = trk.pt(); (gdb) n 128 float phi0 = trk.phi0(); (gdb) p pt $1 = 0.476031452 (gdb) p phi0 $2 = 1.31079081e-33 (gdb) n 129 float d0 = trk.d0(); (gdb) bre 129 Breakpoint 3 at 0x400205c7: file /cdf/home/belforte/ana/420/ExampleMyModule/ExampleTrackAnalysis.cc, line 129. (gdb) cont Continuing. Breakpoint 3, ExampleTrackAnalysis::event (this=0xaa91b80, __T162875824=0xbfffa85c, anEvent=0xab4e548) at /cdf/home/belforte/ana/420/ExampleMyModule/ExampleTrackAnalysis.cc:129 129 float d0 = trk.d0(); (gdb) p pt $3 = 0.598080635 (gdb) p phi0 $4 = 0.441294223 (gdb) etc. etc. (gdb) quit The program is running. Exit anyway? (y or n) y belforte@fcdflnx1/~...420 > .theEnd