From: Mark Kettenis <kettenis@wins.uva.nl>
To: bstell@netscape.com
Cc: gdb@sources.redhat.com
Subject: Re: [Fwd: Insight freezes when trying to debug Mozilla]
Date: Thu, 05 Oct 2000 02:03:00 -0000 [thread overview]
Message-ID: <200010050903.e9593GF19920@debye.wins.uva.nl> (raw)
In-Reply-To: <39DBF055.8A03489D@netscape.com>
Date: Wed, 04 Oct 2000 20:07:01 -0700
From: bstell@netscape.com (Brian Stell)
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.
It seems that gdb is sleeping in sigsuspend.
It appears that gdbtk-hooks.c:693 the code
turns on a timer
waits for the timer or a child thread to signal
turn off the time
From looking at the code it seems that this timer isn't actually set. I
changed the name of the new threads target, which means that it isn't
recognized by gdbtk.c:target_is_native() anymore, and Insight thinks
that it doesn't need the timer. Try adding "multi-thread" to the list
of native targets in gdbtk.c:target_is_native(). I'm pretty sure
that'll work.
Mark
From fnasser@cygnus.com Thu Oct 05 08:35:00 2000
From: Fernando Nasser <fnasser@cygnus.com>
To: Mark Kettenis <kettenis@wins.uva.nl>
Cc: bstell@netscape.com, gdb@sources.redhat.com
Subject: Re: [Fwd: Insight freezes when trying to debug Mozilla]
Date: Thu, 05 Oct 2000 08:35:00 -0000
Message-id: <39DC9F97.99A23FCB@cygnus.com>
References: <39DBF055.8A03489D@netscape.com> <200010050903.e9593GF19920@debye.wins.uva.nl>
X-SW-Source: 2000-10/msg00019.html
Content-length: 2274
Brian,
This is what Mark is talking about. Can you please try this
patch and let us know if it worked?
Thanks
Fernando
Index: gdbtk/generic/gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.6
diff -c -p -r1.6 gdbtk.c
*** gdbtk.c 2000/07/02 20:07:07 1.6
--- gdbtk.c 2000/10/05 15:32:31
*************** target_is_native (t)
*** 329,335 ****
if (STREQ (name, "exec") || STREQ (name, "hpux-threads")
|| STREQ (name, "child") || STREQ (name, "procfs")
! || STREQ (name, "solaris-threads") || STREQ (name, "linuxthreads"))
return 1;
return 0;
--- 329,336 ----
if (STREQ (name, "exec") || STREQ (name, "hpux-threads")
|| STREQ (name, "child") || STREQ (name, "procfs")
! || STREQ (name, "solaris-threads") || STREQ (name, "linuxthreads")
! || STREQ (name, "multi-thread"))
return 1;
return 0;
Mark Kettenis wrote:
>
> Date: Wed, 04 Oct 2000 20:07:01 -0700
> From: bstell@netscape.com (Brian Stell)
>
> 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.
>
> It seems that gdb is sleeping in sigsuspend.
>
> It appears that gdbtk-hooks.c:693 the code
> turns on a timer
> waits for the timer or a child thread to signal
> turn off the time
>
> >From looking at the code it seems that this timer isn't actually set. I
> changed the name of the new threads target, which means that it isn't
> recognized by gdbtk.c:target_is_native() anymore, and Insight thinks
> that it doesn't need the timer. Try adding "multi-thread" to the list
> of native targets in gdbtk.c:target_is_native(). I'm pretty sure
> that'll work.
>
> Mark
--
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
From bstell@netscape.com Thu Oct 05 14:53:00 2000
From: bstell@netscape.com (Brian Stell)
To: Fernando Nasser <fnasser@cygnus.com>
Cc: Mark Kettenis <kettenis@wins.uva.nl>, gdb@sources.redhat.com
Subject: Re: [Fwd: Insight freezes when trying to debug Mozilla]
Date: Thu, 05 Oct 2000 14:53:00 -0000
Message-id: <39DCF930.F4135CEB@netscape.com>
References: <39DBF055.8A03489D@netscape.com> <200010050903.e9593GF19920@debye.wins.uva.nl> <39DC9F97.99A23FCB@cygnus.com>
X-SW-Source: 2000-10/msg00020.html
Content-length: 2434
Perfect!
Thank you very much!
Fernando Nasser wrote:
> Brian,
>
> This is what Mark is talking about. Can you please try this
> patch and let us know if it worked?
>
> Thanks
>
> Fernando
>
> Index: gdbtk/generic/gdbtk.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
> retrieving revision 1.6
> diff -c -p -r1.6 gdbtk.c
> *** gdbtk.c 2000/07/02 20:07:07 1.6
> --- gdbtk.c 2000/10/05 15:32:31
> *************** target_is_native (t)
> *** 329,335 ****
>
> if (STREQ (name, "exec") || STREQ (name, "hpux-threads")
> || STREQ (name, "child") || STREQ (name, "procfs")
> ! || STREQ (name, "solaris-threads") || STREQ (name, "linuxthreads"))
> return 1;
>
> return 0;
> --- 329,336 ----
>
> if (STREQ (name, "exec") || STREQ (name, "hpux-threads")
> || STREQ (name, "child") || STREQ (name, "procfs")
> ! || STREQ (name, "solaris-threads") || STREQ (name, "linuxthreads")
> ! || STREQ (name, "multi-thread"))
> return 1;
>
> return 0;
>
> Mark Kettenis wrote:
> >
> > Date: Wed, 04 Oct 2000 20:07:01 -0700
> > From: bstell@netscape.com (Brian Stell)
> >
> > 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.
> >
> > It seems that gdb is sleeping in sigsuspend.
> >
> > It appears that gdbtk-hooks.c:693 the code
> > turns on a timer
> > waits for the timer or a child thread to signal
> > turn off the time
> >
> > >From looking at the code it seems that this timer isn't actually set. I
> > changed the name of the new threads target, which means that it isn't
> > recognized by gdbtk.c:target_is_native() anymore, and Insight thinks
> > that it doesn't need the timer. Try adding "multi-thread" to the list
> > of native targets in gdbtk.c:target_is_native(). I'm pretty sure
> > that'll work.
> >
> > Mark
>
> --
> 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
prev parent reply other threads:[~2000-10-05 2:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-04 20:03 Brian Stell
2000-10-05 2:03 ` Mark Kettenis [this message]
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=200010050903.e9593GF19920@debye.wins.uva.nl \
--to=kettenis@wins.uva.nl \
--cc=bstell@netscape.com \
--cc=gdb@sources.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