Re: RFC: Do not try g-packet-guess algorithm on exited targets

Daniel Jacobowitz
2008-11-23T23:06:10Z

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.)