From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19326 invoked by alias); 20 Jun 2003 17:22:30 -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 24448 invoked from network); 20 Jun 2003 17:13:27 -0000 Received: from unknown (HELO fw1.coware.com) (208.46.221.194) by sources.redhat.com with SMTP; 20 Jun 2003 17:13:27 -0000 Received: from CoWare.com (coware1 [192.168.1.102]) by fw1.coware.com (8.11.6+Sun/8.11.4) with ESMTP id h5KHDQ101942 for ; Fri, 20 Jun 2003 10:13:26 -0700 (PDT) Received: from gleekxp (dhcp209.coware.com [192.168.1.209]) by CoWare.com (8.11.1/8.11.4) with SMTP id h5KHDOU12577; Fri, 20 Jun 2003 10:13:26 -0700 (PDT) From: "Sunil Alankar" To: "Gdb@Sources. Redhat. Com" Cc: "Sunil Alankar" Subject: problem issuing 'call' command in gdb-5.2.1/5.3 on solaris when linked with libpthread Date: Fri, 20 Jun 2003 17:22:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-SW-Source: 2003-06/txt/msg00416.txt.bz2 Hi, I have encountered this critical problem where the gdb 'call' command errors out saying "The program being debugged stopped while in a function called from GDB. When the function (foo(void)) is done executing, GDB will silently stop (instead of continuing to evaluate the expression containing the function call)." I can reproduce this with a very simple c program with no pthread creation but linking with libpthread. The version of gdb is 5.2.1 (can also see the problem on 5.3) on solaris 2.7 gcc 2.95.3 used with binutils 2.11.2 test.cpp : #include int main() { return 0; } void foo() { printf("Function foo called...\n"); } g++ -g test.cpp -pthread % gdb a.out (gdb) b main Breakpoint 1 at 0x10574: file simple.cpp, line 5. (gdb) r Starting program: /eng-qa/sunil/mttest/ui_test/utest/mt-debug/with-pthread/a.out [New LWP 1] [New LWP 2] [New LWP 3] Breakpoint 1, main () at simple.cpp:5 5 return 0; (gdb) call foo() Breakpoint 1, main () at simple.cpp:5 5 return 0; The program being debugged stopped while in a function called from GDB. When the function (foo(void)) is done executing, GDB will silently stop (instead of continuing to evaluate the expression containing the function call). (gdb) Any help is greatly appreciated. Is there a way to totally disable pthread debud support in gdb where gdb will not be aware of pthreads in the application. Thanks --Sunil