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: RFC: target_create_inferior that does not call proceed


On Sat, Jan 21, 2006 at 10:13:46AM -0500, Daniel Jacobowitz wrote:
> > Daniel, could you please describe in some detail what happens now on
> > Posix systems when to_create_inferior is called, and in particular as
> > result of the call to `proceed'?  AFAIK, the inferior is not actually
> > running until you say "run", but your message seems to indicate
> > otherwise?
> > 
> > I need these details to decide whether your suggested change in
> > go32-nat.c is the right thing to do.

> The only call site for target_create_inferior is at the bottom of
> run_command_1.  It first creates a new inferior, and then calls
> proceed, which transitions the inferior from stopped to executing.
> prog_has_started is only set when the program is created and cleared
> when it is killed, so I think the patch is right - but I don't
> understand all the DOS-specific bits of go32-nat.c.

Hi Eli,

Was this sufficient?  Do you want to try the patch on DJGPP (since I
failed to build GDB on my local DJGPP installation)?  I'd like to check
this patch in, and I believe it's correct, but I want to make sure I
don't break go32-nat.c.

-- 
Daniel Jacobowitz
CodeSourcery


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