Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Bill Bland <bill@ns.jfreebies.com>,
	gdb mailing list <gdb@sources.redhat.com>
Subject: Re: Debugging threaded console-based program
Date: Fri, 08 Feb 2002 08:16:00 -0000	[thread overview]
Message-ID: <1020208161459.ZM9768@localhost.localdomain> (raw)
In-Reply-To: Bill Bland <bill@ns.jfreebies.com> "Debugging threaded console-based program" (Feb  8, 12:09pm)

On Feb 8, 12:09pm, Bill Bland wrote:

> 	I'm trying to use gdb to find out more about a program whose
> source I don't have (and I have no way of getting).  The program is
> multi-threaded which causes problems for me if I run it in one terminal
> and use gdb in another terminal to attach to it.  This means that I want
> to start the program from inside gdb.
> Unfortunately since the program is console-based it is very difficult to
> see what's going on with the program's and gdb's output going to the same
> terminal.  Could anyone suggest a way around this?

You didn't say which platform you're trying it on.  If it's GNU/Linux,
there have been a number of recent fixes in the development sources
with regard to being able to attach to a multi-threaded program.  If
you haven't done so already, you might want to fetch and build a copy
of the developement sources.  Otherwise, you should provide us with more
information so that we can try to fix the problem in GDB.

See http://sources.redhat.com/gdb/current/ .

Kevin


      reply	other threads:[~2002-02-08 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08  4:08 Bill Bland
2002-02-08  8:16 ` Kevin Buettner [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=1020208161459.ZM9768@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=bill@ns.jfreebies.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