From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27030 invoked by alias); 9 Aug 2006 06:26:48 -0000 Received: (qmail 27022 invoked by uid 22791); 9 Aug 2006 06:26:48 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Aug 2006 06:26:46 +0000 Received: by nf-out-0910.google.com with SMTP id p46so47842nfa for ; Tue, 08 Aug 2006 23:26:44 -0700 (PDT) Received: by 10.78.133.10 with SMTP id g10mr180389hud; Tue, 08 Aug 2006 23:26:44 -0700 (PDT) Received: by 10.78.118.14 with HTTP; Tue, 8 Aug 2006 23:26:44 -0700 (PDT) Message-ID: <3ce33f6c0608082326g5da2ee6co5530fb0de8af94e9@mail.gmail.com> Date: Wed, 09 Aug 2006 06:26:00 -0000 From: Shriek To: gdb@sourceware.org Subject: Need help in debugging daemons with GDB MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00062.txt.bz2 I am not sure this is the correct mailing list for this but did not find another suitable one ... I am debugging a daemon in FreeBSD and I am particularly interested in the initialization functions activity as the daemon starts ... conventionally I attach the GDB to the PID and supply the unstripped object file of the daemon as argument. Now the problem with this is when you stop the daemon and restart there is no info of the PID avaliable for attaching the GDB, thus I cannot get to see the initialization functions ... and by the time you get to know PID the initialization stuff is already history :-)