From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3250 invoked by alias); 3 Aug 2008 12:41:05 -0000 Received: (qmail 3237 invoked by uid 22791); 3 Aug 2008 12:41:04 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.178) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 03 Aug 2008 12:40:30 +0000 Received: by wa-out-1112.google.com with SMTP id l24so1180857waf.12 for ; Sun, 03 Aug 2008 05:40:28 -0700 (PDT) Received: by 10.114.37.1 with SMTP id k1mr6774932wak.42.1217767228806; Sun, 03 Aug 2008 05:40:28 -0700 (PDT) Received: by 10.114.25.7 with HTTP; Sun, 3 Aug 2008 05:40:28 -0700 (PDT) Message-ID: <74d1018e0808030540t1d782b6oc76b5314ecfcfa9c@mail.gmail.com> Date: Sun, 03 Aug 2008 12:41:00 -0000 From: "Alan Turing" To: gdb@sourceware.org Subject: Debugging multithreaded application with GDB MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes 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: 2008-08/txt/msg00046.txt.bz2 Hi Anyone, I have encountered a problem using GDB for stepping through execution threads, and hope someone out there has the proper experience to guide me through: 1. GDB would set a breakpoint in a thread only if it already exists 2. In most cases, once a thread is launched, it would start executing almost imemdiately. My problem: I need to catch the thread as close to its starting point as possible. Setting a break point after the thread is already running means it's way past the desired break point. Anyone? Much Obliged, Mashkochit