From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20317 invoked by alias); 3 Apr 2006 16:35:01 -0000 Received: (qmail 20309 invoked by uid 22791); 3 Apr 2006 16:35:00 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 03 Apr 2006 16:34:58 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FQS12-0002Q9-7o; Mon, 03 Apr 2006 12:34:56 -0400 Date: Mon, 03 Apr 2006 16:35:00 -0000 From: Daniel Jacobowitz To: Pupeno Cc: gdb@sourceware.org Subject: Re: debugging dynamically loadable code Message-ID: <20060403163456.GA9232@nevyn.them.org> Mail-Followup-To: Pupeno , gdb@sourceware.org References: <200604031809.35814.pupeno@pupeno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200604031809.35814.pupeno@pupeno.com> User-Agent: Mutt/1.5.8i 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-04/txt/msg00012.txt.bz2 On Mon, Apr 03, 2006 at 06:09:33PM +0200, Pupeno wrote: > Any ideas how can I do my debugging ? You can do one of two things here: - "set stop-on-solib-events 1". This will cause GDB to stop when shared libraries are loaded or unloaded. You can use "info shared" to see if the library you want has been loaded after a stop. - Pending breakpoints. You can set a breakpoint by filename:line or function name, even if that object hasn't been loaded yet - you just may not be able to do it using the DDD GUI. You need GDB 6.3 or 6.4 for this to work. I don't know if DDD lets you get at the GDB console usefully. -- Daniel Jacobowitz CodeSourcery