From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26004 invoked by alias); 22 May 2003 12:41:41 -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 25971 invoked from network); 22 May 2003 12:41:40 -0000 Received: from unknown (HELO auemail2.firewall.lucent.com) (192.11.223.163) by sources.redhat.com with SMTP; 22 May 2003 12:41:40 -0000 Received: from nbgif1.de.lucent.com (h135-248-192-26.lucent.com [135.248.192.26]) by auemail2.firewall.lucent.com (Switch-2.2.6/Switch-2.2.0) with ESMTP id h4MCfcK15644 for ; Thu, 22 May 2003 08:41:38 -0400 (EDT) Received: from sfsws1.de.lucent.com (sfsws1 [135.248.217.84]) by nbgif1.de.lucent.com (8.8.8/8.8.5) with ESMTP id OAA07494 for ; Thu, 22 May 2003 14:41:36 +0200 (MEST) Received: from sfsw51.de.lucent.com (sfsw51 [135.248.216.225]) by sfsws1.de.lucent.com (8.11.7+Sun/8.8.5) with ESMTP id h4MCfY505523 for ; Thu, 22 May 2003 14:41:36 +0200 (MEST) Received: (from kzeitler@localhost) by sfsw51.de.lucent.com (8.11.7+Sun/8.8.8) id h4MCfY210787; Thu, 22 May 2003 14:41:34 +0200 (MEST) X-Authentication-Warning: sfsw51.de.lucent.com: kzeitler set sender to kzeitler@lucent.com using -f To: gdb@sources.redhat.com Subject: calling functions in gdb sometimes doesn't work X-Kibo-Says: Zumfing is what it appears. From: Klaus Zeitler Date: Thu, 22 May 2003 12:41:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00292.txt.bz2 Hi, with gdb 5.2 (Solaris 5.8) sometimes calling a function, e.g. hello(){printf("hello\n");}, results in the following message: (gdb) p hello() The program being debugged stopped while in a function called from GDB. When the function (hello) is done executing, GDB will silently stop (instead of continuing to evaluate the expression containing the function call). When I try to continue my program it appears as if this function didn't get call at all. Unfortunately this doesn't happen with simple example programs. The program I'm debugging is threaded (maybe this has something to do with it). When I switch back to gdb 5.0, calling functions in the same program works just fine. Does anybody have an idea what's causing this. Thanks Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | | Email: kzeitler@lucent.com | ------------------------------------------ --- Oh, I don't blame Congress. If I had $600 billion at my disposal, I'd be irresponsible, too. -- Lichty & Wagner