How to access files (open/read/close) from gdb script ?

Joel Brobecker brobecker@adacore.com
Mon Sep 26 17:03:00 GMT 2005


> I am not sure to understand correclty:
> you mean that I can write a tcl script to do that, but how can I then
> launch the tcl script ?

You can launch any command from GDB using the "shell" command.

Just as a comment regarding TCL, I would personally use anything but
TCL. It's your choice: You can use bourne scripts, or even write a
program in C or Ada...

-- 
Joel



More information about the Gdb mailing list