This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Since ALL the gdb testsuites are written in Tcl (that's what Expect uses, and that is consequently what dejagnu uses) this seems a particularly unfortunate place to be airing your prejudices.

Jim

On Sep 26, 2005, at 10:03 AM, Joel Brobecker wrote:

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]