From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19814 invoked by alias); 4 May 2007 01:40:39 -0000 Received: (qmail 19727 invoked by uid 22791); 4 May 2007 01:40:39 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 04 May 2007 01:40:37 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 57B3B48CE49; Thu, 3 May 2007 21:40:35 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29612-01-8; Thu, 3 May 2007 21:40:35 -0400 (EDT) Received: from joel.gnat.com (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 11A1D48CE31; Thu, 3 May 2007 21:40:35 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id B3681E7B4F; Thu, 3 May 2007 18:40:35 -0700 (PDT) Date: Fri, 04 May 2007 01:40:00 -0000 From: Joel Brobecker To: aladdin Cc: gdb@sourceware.org Subject: Re: Is this the right list... Message-ID: <20070504014035.GB3804@adacore.com> References: <200705032136.32942.aladdin@csunv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705032136.32942.aladdin@csunv.com> User-Agent: Mutt/1.4.2.2i 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/msg00012.txt.bz2 [yes, you can send questions about using GDB to this] > When a program goes off into a daemon, or an endless loop or whatever, how do > you get gdb attention (i. e., get a prompt so you can stop/check/abort the > program)? If GDB is still attached to your program, hitting control-c should interrupt your program and allow you to see where it is. Otherwise, your other option, if you are not attach, then just get the pid of your program, and attach GDB to it using "attach ". The GDB documentation should provide you more details about this. (my very first lesson at engineering school was RTFM :-) -- Joel