I am wondering if it might be possible to get a list of files/directories that the debugged application has opened but not closed from GDB itself ?
Currently I set a breakpoint and then I use an external program like lsof to check for opened files.
But this approach is really annoying.
Environment: Debian-Lenny with gdb v6.8
EDIT: I am asking because my application is leaking file handles in some situations