Path: utzoo!utgpu!watmath!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!UUNET.UU.NET!kewill!bryan From: kewill!bryan@UUNET.UU.NET (Bryan Boreham) Newsgroups: gnu.gdb.bug Subject: Bug fix for add-file. Message-ID: <8908021959.AA15346@edinburgh.kewill.uucp> Date: 2 Aug 89 19:59:52 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 32 diff -c dbxread.c~ dbxread.c *** dbxread.c~ Thu Jul 20 09:04:42 1989 --- dbxread.c Wed Aug 2 20:44:03 1989 *************** *** 3427,3433 **** perror_with_name (name); old_chain = make_cleanup (close, desc); ! make_cleanup (free_current_contents, &name); READ_FILE_HEADERS (desc, name); --- 3427,3437 ---- perror_with_name (name); old_chain = make_cleanup (close, desc); ! ! /* Change by Bryan Boreham, Kewill, Wed Aug 2 20:43:19 1989. ! name points into the middle of arg_string, so we don't want ! to free it here. */ ! /* make_cleanup (free_current_contents, &name); */ READ_FILE_HEADERS (desc, name); The comment should explain the problem; the memory in question is usually owned by command_line_input and shouldn't be free'd anyway. ET++ dynamically-linked applcations are now de-buggable; thanks to all the MCC people who pointed me at add-file. Bryan.