From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5707 invoked by alias); 15 Jun 2007 09:37:14 -0000 Received: (qmail 5694 invoked by uid 22791); 15 Jun 2007 09:37:13 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.229) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 15 Jun 2007 09:37:11 +0000 Received: by nz-out-0506.google.com with SMTP id s1so742936nze for ; Fri, 15 Jun 2007 02:37:09 -0700 (PDT) Received: by 10.114.155.1 with SMTP id c1mr2822742wae.1181900228723; Fri, 15 Jun 2007 02:37:08 -0700 (PDT) Received: by 10.114.88.19 with HTTP; Fri, 15 Jun 2007 02:37:08 -0700 (PDT) Message-ID: <1b19bbe60706150237j5fa657ebkc39880c27947a3e5@mail.gmail.com> Date: Fri, 15 Jun 2007 09:37:00 -0000 From: "Pobereznicenco Stefan" To: gdb@sourceware.org Subject: Fwd: shared library debugging issue - please help In-Reply-To: <1b19bbe60706150203m33e1cf5awc975f39fa6b54342@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1b19bbe60706150203m33e1cf5awc975f39fa6b54342@mail.gmail.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00120.txt.bz2 ---------- Forwarded message ---------- From: Pobereznicenco Stefan Date: Jun 15, 2007 12:03 PM Subject: shared library debugging issue - please help To: gdb@sourceware.org Hey, I'm trying to debug a shared library. I set a breakpoint like this: (gdb) break LoginSM.cpp:153 Breakpoint 7 at 0x2cf652f: file LoginSM.cpp, line 153. (I see that the breakpoint was set correctly!!!!!) This file (LoginSM.cpp) is part of the shared library. But, when the breakpoint is hit, gdb displays this: Breakpoint 1, 0xAADDRESS in LoginSM::Next () at /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/new:93 LoginSM::Next() is the function inside it I set the breakpoint, ... but why gdb tells me about 'new' file? I didn't set a breakpoint in the header file of operator 'new' ... Because of this, I cannot step into my shared library ... :( Well, if I set a breakpoint in another file, the result is the same: the debugger stops at line 93 from 'new' file .... Could anyone help me? Thanks, Stefan well, I want to add something. If I set a breakpoint to a function, like this: (gdb) break libmain.cpp:functionNameFromSharedLibrary Breakpoint 7 at 0x4772c8: file /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/new, line 93. the breakpoint is set in "new" file !!!!!!