This is the mail archive of the gdb-prs@sources.redhat.com 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: gdb/1850: gdb writes over executable file on exit


The following reply was made to PR gdb/1850; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: dkaplan1@uiuc.edu
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/1850: gdb writes over executable file on exit
Date: Sun, 23 Jan 2005 21:24:38 -0500

 On Mon, Jan 24, 2005 at 01:54:02AM -0000, dkaplan1@uiuc.edu wrote:
 > >Description:
 > I downloaded and built from sources gdb-6.3.  After invoking gdb on an executable (vmlinux for example, but it doesn't matter) and then issuing a "quit" command gdb executes 5 write commands on the executable file which corrupts the data so further invocations of gdb are not possible.
 > 
 > Help on this would be greatly appreciated, we are trying to use gdb to remote debug a kernel for an OS class, but this bug prevents us from using this new version of gdb (the problem does not exist in 5.1.90CVS-5) which throws away possibilities of doing module debugging.
 > >How-To-Repeat:
 > Build an executable.
 > Run "strace -eopen,write gdb <filename>" (replace <filename> with name of executable)
 > Type "quit"
 > Notice the 5 write system calls.
 
 I can't reproduce this.  Could you attach a full strace log to the bug?
 
 -- 
 Daniel Jacobowitz


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