From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 714 invoked by alias); 15 Oct 2003 20:11:00 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 706 invoked from network); 15 Oct 2003 20:10:59 -0000 Received: from unknown (HELO web20510.mail.yahoo.com) (216.136.226.145) by sources.redhat.com with SMTP; 15 Oct 2003 20:10:59 -0000 Message-ID: <20031015201057.77923.qmail@web20510.mail.yahoo.com> Received: from [205.158.171.194] by web20510.mail.yahoo.com via HTTP; Wed, 15 Oct 2003 13:10:57 PDT Date: Wed, 15 Oct 2003 20:11:00 -0000 From: Jack J Subject: debugging dynamic link/load code on Linux To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-10/txt/msg00204.txt.bz2 Hi, I am new to gdb mailing list. I have a question and if this list is not appropriate, please apologize. I am hoping someone can shed some light with helpful tips and pointers. question: How do I set a breakpoint in a module/code which is dynamically linked/loaded in Linux ? I tried setting a breaking point (in gdb) after dlsym() but, gdb still complains of function not found. I did have it compiled with "-g" gcc option. -- gdb output-- (gdb) b test_routine Function "test_routine" not defined. (gdb) l test_routine Function "test_routine" not defined. ----- Thanks, __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com