From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30835 invoked by alias); 17 Jan 2006 04:34:31 -0000 Received: (qmail 30826 invoked by uid 22791); 17 Jan 2006 04:34:30 -0000 X-Spam-Check-By: sourceware.org Received: from whirlwind.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jan 2006 04:34:25 +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 DD53812FA59 for ; Tue, 17 Jan 2006 15:34:20 +1100 (EST) Message-ID: <43CC73CE.2030709@netspace.net.au> Date: Tue, 17 Jan 2006 05:54: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 To: gdb@sources.redhat.com Subject: dlopen() 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/msg00155.txt.bz2 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".