Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ucbcad!pasteur!ucbvax!cbosgd!mandrill!garg From: garg@mandrill.CWRU.Edu (Dev Datt Garg) Newsgroups: comp.unix.wizards Subject: To find out the names of open files in a process Message-ID: <2346@mandrill.CWRU.Edu> Date: 17 Jan 88 21:34:01 GMT Reply-To: garg@mandrill.UUCP (Dev Datt Garg) Organization: CWRU Dept. of Computer Engineering, Cleveland OH Lines: 25 Hi Friends, I am working on my M.S. Thesis. I am extending the command language of GDB(Gnu Debugger) for Sun3 running BSD unix. One of the features I am trying to add is to be able to save the context of a process at any point in the user program, so that at later stage program can be restarted from that point. I have got some success in doing that. I am having a problem, If the program, which I am debugging has some files open. I am unable to know which files were open, so that the status of those files can be restored. Of course one of the things I am saving is a user structure, which contains most of the info regarding process context. I somehow want to recover the names of the open files from this struct or from anywhere else. I will highly appreciate if some Guru could tell me some way of achieving that. Thanx in advance. usenet: {decvax,cbosgd,sun}!mandrill!garg Dev Datt Garg csnet: garg@mandrill.CWRU.edu arpa: garg@mandrill.CWRU.edu -- usenet: {decvax,cbosgd,sun}!mandrill!garg Dev Datt Garg csnet: garg@mandrill.CWRU.edu arpa: garg@mandrill.CWRU.edu