public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@cygnus.com>
To: bstell@ix.netcom.com
Cc: insight <insight@sourceware.cygnus.com>
Subject: Re: Insight freezes when trying to debug Mozilla
Date: Tue, 03 Oct 2000 23:49:00 -0000	[thread overview]
Message-ID: <39DAD2F3.2B7D4921@cygnus.com> (raw)
In-Reply-To: <39DABF4D.27018510@ix.netcom.com>

bstell@ix.netcom.com wrote:
> 
> Thank you for the reply.
> 
> Fernando Nasser wrote:
> >
> > bstell@ix.netcom.com wrote:
> > >
> > > I'm trying to debug Mozilla using Insight.
> > >
> > > When I run mozilla with the debug option the insight debugger comes
> > > up and lets me start mozilla. I click the run button and it starts
> > > and then does a break at main. When I press continue mozilla comes
> > > up but insight never responds again (not screen refresh or button
> > > response.
> > >
> >
> > I don't know much about your setup (you may be better off posting to the
> > Mozzila list itself),
> 
> I am confused: Why would I post to the Mozilla list about insight
> hanging?
> 

This mechanism for starting-up gdb from Mozilla was created by someone in there.
We don't know anything about it.  And whoever has created such connection must
have some experience in debugging Mozilla with gdb.

> > but it seems that gdb is waiting for the a Mozzila
> > thread to stop and it never does.
> 
> This seems to imply that the debugger depends on the application helping
> the debugger.
> 

That is not what I said.  But if the application never stops no debugger will ever
regain control unless you do something to halt it.  Unfortunately the STOP button
is dead because the Linux thread code fails to keep the GUI alive (a bug in that code,
at least for Insight purposes -- I will tell people on the gdb list about this).

If you know of some other point in the Mozzila code that will be certainly executed,
try inserting a breakpoint there before saying continue.  See if the GUI regains control
when that breakpoint is reached.

> > Use the second gdb "up" command and see
> > what is being done at  lin-lwp.c:766    I would guess it is a waitpid() call.
> > You could see what the pid is, maybe trying sending it a SIGINT...
> 
> Line 766 of lin-lwp.c is calling sigsuspend().
> 

This is different from what I have.  But 9/30 seems newer than mine (and probably
more correct).  There is probably nothing else wrong with that code besides the
fact that it is not keeping the GUI alive while the program being debugged is
running.  I did not notice the first time around that you just pressed CONTINUE
without any breakpoint inserted (so there is no reason for the inferior to stop
and for the debugger to regain control).



-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299

  reply	other threads:[~2000-10-03 23:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-01  9:49 bstell
2000-10-03 13:36 ` Fernando Nasser
2000-10-03 22:28   ` bstell
2000-10-03 23:49     ` Fernando Nasser [this message]
     [not found]       ` <39DADB70.EBD7725@ix.netcom.com>
2000-10-04  0:33         ` Fernando Nasser
2000-10-04 10:51           ` bstell
2000-10-04 10:56             ` Fernando Nasser
2000-10-04 11:01               ` Syd Polk

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=39DAD2F3.2B7D4921@cygnus.com \
    --to=fnasser@cygnus.com \
    --cc=bstell@ix.netcom.com \
    --cc=insight@sourceware.cygnus.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).