public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: mwcruess@cs.com
To: Keith Seitz <kseitz@firetalk.com>
Cc: MWCruess@cs.com, insight@sourceware.cygnus.com
Subject: Re: Insight debugging remote targets
Date: Thu, 22 Jun 2000 15:35:00 -0000	[thread overview]
Message-ID: <17CE01D4.2D92A92E.00A463D9@cs.com> (raw)
In-Reply-To: <39520ECE.79E7DADF@firetalk.com>

Thanks for the information.  The code that I am
modifying uses monitor.c.  Around monitor.c line 2250
there is code:

  if (exec_bfd)
    write_pc (bfd_get_start_address (exec_bfd));

    inferior_pid = 0;       /* No process now */

I found that before a load, at monitor_wait(),
inferior_pid was 42000, after a load it was 0.
Clearly that's what the code above does, but nothing
was setting it back to 42000.  I commented out the
assignment to inferior_pid.  With this out, a "run" from the command
line produces a dialog box (on NT) that warns me that
a program is already being run.  If I tell it to go
ahead, everything seems to work.  The window controls
work also.  If I use the GUI alone, it seems to work
and I do not get a warning when I click on the run
button.

I looked at the file that you pointed me to and
I did not see you setting inferior_pid to 0 after
a load, and generic_load did not do it either, so
taking it out of monitor.c seemed OK (but the comment
that follows worries me).

Is this the right thing to do?

Thanks,
Michael 

  reply	other threads:[~2000-06-22 15:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-22  5:07 MWCruess
2000-06-22  6:04 ` Keith Seitz
2000-06-22 15:35   ` mwcruess [this message]
2000-06-23  6:00     ` Keith Seitz
2000-06-22  6:11 ` Fernando Nasser

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=17CE01D4.2D92A92E.00A463D9@cs.com \
    --to=mwcruess@cs.com \
    --cc=insight@sourceware.cygnus.com \
    --cc=kseitz@firetalk.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).