This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to access files (open/read/close) from gdb script ?
- From: David Lamy-Charrier <david dot lamy at gmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Mon, 26 Sep 2005 16:44:47 +0200
- Subject: How to access files (open/read/close) from gdb script ?
- References: <6541ed4c050926074274c08518@mail.gmail.com>
- Reply-to: David Lamy-Charrier <david dot lamy at gmail dot com>
Hello,
Does anyone of you know how to perform file operations
(open/read/close) from a GDB script ?
Each time GDB stops on a breakpoint I read a value from memory and then
I want to open a file on the host and search for the value in this
file ? any hints ?
Thanks,
David