This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Do not try g-packet-guess algorithm on exited targets
On Sun, Nov 23, 2008 at 10:11:58PM +0000, Pedro Alves wrote:
> Is this new flag working around that fact that remote_open_1 does this?
>
> /* Assume that the target is running, unless we learn otherwise. */
> target_mark_running (target);
Right.
> Then would this in remote_read_description work instead of a
> new flag?
>
> > + /* Do not try this during initial connection. */
> > + if (!target_has_execution || ptid_equal (inferior_ptid, null_ptid))
> > + return NULL;
>
> (or just null_ptid).
It ought to. Let me give that a try.
(The patch fixes 9 FAILs in gdb.server/\* on mips-linux, as expected.)
--
Daniel Jacobowitz
CodeSourcery