Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: Re: gdb suspends itself
Date: Tue, 05 Jul 2005 11:05:00 -0000	[thread overview]
Message-ID: <dadntm$bno$1@sea.gmane.org> (raw)
In-Reply-To: <q5gy88l4p7a.fsf@lucent.com>

Klaus Zeitler wrote:

> 
> Hello,
> I'm trying to debug a program with approx. 100 threads under Solaris 5.8,
> that generates lots of trace data. When I run the program under gdb,
> the first few threads are started, then gdb suspends itself and I need to
> call 'fg' to resume execution, i.e. the whole thing looks like e.g.:
......
> UMC1-1-> [07-05 10:05:42:981463] 0x7277b0   (tMain      ) : Initializing
> OSipc
> 
> [6]+  Stopped                 gdb ./umc.vx
> [675]$ fg
> gdb ./umc.vx
> ---Type <return> to continue, or q <return> to quit---
> [New LWP 29]
> logMsg [07-05 10:20:36:924936] (nbapDemon  ) : PetDemon create Server
> socket on port 45260 ...
> 
> The same happens with gdb 5.3. and 6.1.
> This is probably not a gdb problem, but I hope someone can give me a hint
> how I should investigate this odd behavior.

Try

   stty -tostop

before running gdb. I had such problems because gdb sometimes tries to
output messages while not "owning" terminal. The above command tells the
terminal to not stop programs in such cases.

- Volodya


  reply	other threads:[~2005-07-05 11:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05  9:13 Klaus Zeitler
2005-07-05 11:05 ` Vladimir Prus [this message]
2005-07-06  9:27   ` Klaus Zeitler

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='dadntm$bno$1@sea.gmane.org' \
    --to=ghost@cs.msu.su \
    --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