HP gnu source-level debugger 5992-4701 Manuale Utente Pagina 171

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 170
2. The rtcconfig file should contain entries such as the following:
check_heap=on
check_leaks=on
check_free=on
files=exec1:exec2:exec3
output_dir=/tmp/results
3. Set the following environment variables as follows:
export BATCH_RTC=on
4. Complete one of the following steps:
Use the +rtc option for the chatr command on each of the required
executable files that must be instrumented, as follows:
$ chatr +rtc enable exec1 exec2 exec3
OR
Preload the librtc library as follows:
export LD_PRELOAD /opt/langtools/lib/hpux32/librtc.so
5. Run the program as follows:
./exec1
Suppose exec1 eventually spawns exec2, exec3, exec4, exec5, only
exec1, exec2, exec3 will be instrumented based on the settings in the
rtcconfig file.
14.10.6 Debugging Memory Interactively After Attaching to a Running Process
HP WDB accepts -pid or -p followed by a process ID to attach a running process to
the debugger.
To use Batch RTC after attaching GDB to a running process, complete the following
steps:
14.10 Debugging Memory Problems 171
Vedere la pagina 170
1 2 ... 166 167 168 169 170 171 172 173 174 175 176 ... 368 369

Commenti su questo manuale

Nessun commento