From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32254 invoked by alias); 17 Jan 2006 06:00:18 -0000 Received: (qmail 32246 invoked by uid 22791); 17 Jan 2006 06:00:17 -0000 X-Spam-Check-By: sourceware.org Received: from cumulus.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.72) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jan 2006 06:00:12 +0000 Received: from [192.168.0.10] (220-253-60-77.VIC.netspace.net.au [220.253.60.77]) by mail.netspace.net.au (Postfix) with ESMTP id CF9C77C853 for ; Tue, 17 Jan 2006 17:00:07 +1100 (EST) Message-ID: <43CC87E9.3030705@netspace.net.au> Date: Tue, 17 Jan 2006 06:12:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050914 Debian/1.7.11-1 MIME-Version: 1.0 Cc: gdb@sources.redhat.com Subject: Re: dlopen() References: <43CC73CE.2030709@netspace.net.au> In-Reply-To: <43CC73CE.2030709@netspace.net.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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-01/txt/msg00157.txt.bz2 Russell Shaw wrote: > Hi, > > I do: > > void *handle = dlopen("libfile1.so", RTLD_NOW); > ... > newfunc = dlsym(handle, "afunc"); > ... > int res = (*newfunc)(app); > > How do i stop inside the "newfunc" function? I set a breakpoint > there, but it doesn't activate. > > I'm using GNU gdb 6.3-debian on a pc. > I compiled with CFLAGS="-g -O0". For some reason, it is working now. I'm also using gdb-6.4 now.