This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] gdbserver with reversed arguments seg. fault
- From: Daniel Jacobowitz <drow at false dot org>
- To: Denis PILAT <denis dot pilat at st dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 3 Jan 2007 09:44:23 -0500
- Subject: Re: [RFA] gdbserver with reversed arguments seg. fault
- References: <459B778D.4000500@st.com>
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