Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: Andrew Cagney <ac131313@redhat.com>,
	Kevin Buettner <kevinb@redhat.com>,
	gdb-patches@sources.redhat.com
Subject: Re: [RFC] gdb.base/args.exp: Invoke gdb_load for simulator targets
Date: Tue, 15 Apr 2003 01:41:00 -0000	[thread overview]
Message-ID: <16027.25672.433673.523191@localhost.redhat.com> (raw)
In-Reply-To: <3E99BE7F.1B2584E8@redhat.com>

Michael Snyder writes:
 > Andrew Cagney wrote:
 > > 
 > > > On Apr 9, 10:21am, Andrew Cagney wrote:
 > > >
 > > >
 > > >> >    * gdb.base/args.exp: Invoke gdb_load for simulator targets.
 > > >> >    Modify regexps to match extra output after program exit in a
 > > >> >    simulator.
 > > >
 > > >>
 > > >> What's the extra output?  That part may be a bug.
 > > >
 > > >
 > > > When running on a simulator, I see:
 > > >
 > > >     (gdb) target sim
 > > >     Connected to the simulator.
 > > >     (gdb) load gdb.base/args
 > > >     (gdb) run
 > > >     Starting program: .../gdb.base/args 1 3
 > > >     3
 > > >     .../gdb.base/args
 > > >     1
 > > >     3
 > > >
 > > >     Program exited normally.
 > > >     [Switching to process 0]
 > > >     Current language:  auto; currently asm
 > > >     (gdb)
 > > >
 > > > When running with a native gdb, I see:
 > > >
 > > >     (gdb) run
 > > >     Starting program: .../gdb.base/args 1 3
 > > >     3
 > > >     .../gdb.base/args
 > > >     1
 > > >     3
 > > >
 > > >     Program exited normally.
 > > >     (gdb)
 > > >
 > > > The extra output is the bit about switching to process 0 and reporting
 > > > the current language.  I figured it was a feature, but it may well be
 > > > a bug.  (It seems pretty harmless...)
 > > 
 > > I recall that mysteriously appearing at some stage.  I don't think it is
 > > a feature since `Switching to process 0' doesn't make any sense - if the
 > > program exited normally then there are no processes.
 > > 
 > > I suspect that it is related to the SIM trying to simultaneously be an
 > > embedded board (which can't exit) and a normal UNIX process (which does
 > > exit).
 > 
 > I'd be more inclined to attribute it to some recent change
 > in infrun or close associates.  It thinks the inferior_pid
 > has changed.


That line is printed when we stop (normal_stop) and if
target_has_execution.  Maybe when the target exits, it used to pop
the target stack to a layer for which target_has_execution was 0? It
could be that now that doesn't happen anymore.

What's the target once it stops?

elena


  reply	other threads:[~2003-04-15  1:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08 22:27 Kevin Buettner
2003-04-08 22:44 ` Elena Zannoni
2003-04-09 14:21 ` Andrew Cagney
2003-04-09 16:07   ` Kevin Buettner
2003-04-09 16:15     ` Andrew Cagney
2003-04-13 19:46       ` Michael Snyder
2003-04-15  1:41         ` Elena Zannoni [this message]
2003-04-16 20:32 ` Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16027.25672.433673.523191@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.com \
    --cc=msnyder@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox