This is the mail archive of the gdb-patches@sourceware.org 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: [RFA] gdbserver with reversed arguments seg. fault


On Wed, Jan 03, 2007 at 10:29:49AM +0100, Denis PILAT wrote:
> Hi,
> 
> Following our discussion in the thread 
> http://sources.redhat.com/ml/gdb-patches/2007-01/msg00059.html
> I'm proposing the attached patch to fix a segmentation fault that occurs 
> into gdbserver when you revert the binary filename with the "host:port" 
> argument.
> In inferiors.c the inferior_target_data() function is called with a NULL 
> pointer argument. At the beginning I though of testing arguments but 
> none of them are tested in this whole file so I concluded it's up to the 
> caller to do so.

What exactly did you do to get this crash?  What's the backtrace look
like?  It didn't happen for me.

-- 
Daniel Jacobowitz
CodeSourcery


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