From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32000 invoked by alias); 9 Oct 2002 14:30:31 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 31993 invoked from network); 9 Oct 2002 14:30:30 -0000 Received: from unknown (HELO TYO201.gate.nec.co.jp) (210.143.35.51) by sources.redhat.com with SMTP; 9 Oct 2002 14:30:30 -0000 Received: from mailgate4.nec.co.jp ([10.7.69.197]) by TYO201.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g99EUSl09623 for ; Wed, 9 Oct 2002 23:30:29 +0900 (JST) Received: from mailsv4.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g99EUSA21870 for ; Wed, 9 Oct 2002 23:30:28 +0900 (JST) Received: from nees01 (nees01.neec.abk.nec.co.jp [10.40.218.6]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP id g99EUR204588 for ; Wed, 9 Oct 2002 23:30:27 +0900 (JST) Received: from bcpc601.neec.abk.nec.co.jp ([10.40.221.1]) by nees01 (8.8.8+Sun/3.7W/01) with SMTP id XAA06031 for ; Wed, 9 Oct 2002 23:30:27 +0900 (JST) Received: from ABKNEECBCPCD65 [10.40.220.65] by bcpc601.neec.abk.nec.co.jp (SMTPD32-4.07) id AE7299AA0236; Wed, 09 Oct 2002 23:30:10 +0900 Message-ID: <007801c26fa0$7485a000$41dc280a@ABKNEECBCPCD65> From: "Masahide Tomita" To: Subject: Can threaded program be remotely debugged using Insight ? Date: Wed, 09 Oct 2002 07:30:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-q4/txt/msg00019.txt.bz2 Hi, This may be FAQ, but I couldn't really determine what is the solution for this problem, when I searched on the web. I'm trying to use Insight to remotely debug multi-threaded program. Host machine and target board are both Redhat 7.2 system running on Intel CPU. I tryied to debug a program using thread, so I started gdbserver and gdb (Insight) like below: [target] gdbserver ***.***.***.***:1001 program program.c [host] /usr/local/bin/gdb program They start normally, and run normally, but when program gets to the function pthread_create, insight on host machine freezes. Well, it looks like still working since mouse cursol get "clock" icon, but cpu load level is almost zero, and no matter how long you wait you get no response from insight. And I get the message like below on target console. GDBbug : target.c (target_signal_from_host) : Unrecognized real-time signal So, my real questions are: 1. Is this a problem of insight, or gdb? 2. Is there any way to debug threded program by using gdb, or insight? Any help or information is appreceated. Thank you. -- Masahide Tomita fsi_tomi@bcpc601.neec.abk.nec.co.jp