From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21171 invoked by alias); 8 Feb 2002 12:08:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21037 invoked from network); 8 Feb 2002 12:08:16 -0000 Received: from unknown (HELO ns.jfreebies.com) (212.67.197.81) by sources.redhat.com with SMTP; 8 Feb 2002 12:08:16 -0000 Received: from localhost (bill@localhost) by ns.jfreebies.com (8.11.6/8.9.3) with ESMTP id g18C9NW15602 for ; Fri, 8 Feb 2002 12:09:23 GMT Date: Fri, 08 Feb 2002 04:08:00 -0000 From: Bill Bland To: gdb mailing list Subject: Debugging threaded console-based program Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-02/txt/msg00131.txt.bz2 Hello, 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? Thanks in advance, Bill.