From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1162 invoked by alias); 31 May 2007 12:50:17 -0000 Received: (qmail 1106 invoked by uid 22791); 31 May 2007 12:50:16 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.224) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 May 2007 12:50:14 +0000 Received: by nz-out-0506.google.com with SMTP id s1so125921nze for ; Thu, 31 May 2007 05:50:12 -0700 (PDT) Received: by 10.114.111.1 with SMTP id j1mr624058wac.1180615812242; Thu, 31 May 2007 05:50:12 -0700 (PDT) Received: by 10.114.190.20 with HTTP; Thu, 31 May 2007 05:50:12 -0700 (PDT) Message-ID: Date: Thu, 31 May 2007 12:50:00 -0000 From: "Ulisses Furquim" To: gdb@sourceware.org Subject: Problems with multi-threaded application debugging MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00180.txt.bz2 Hi, I was doing some tests trying to debug a simple multi-threaded application and noticed some strange gdb behaviors: - sometimes when you "continue" gdb doesn't stop at a breakpoint inside some of the threads; - sometimes when you try to single step (with "next") all the threads run until the program exits; - I was trying to use the scheduler-locking variable (setting it to "on"), but it seems I can single step on only one thread. I mean, If I switch to another thread and try to single step it, gdb switches back to the previous thread. Does anybody have any idea? Is this the expected behavior of gdb? Best regards, -- Ulisses