From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15034 invoked by alias); 23 Jan 2007 17:23:18 -0000 Received: (qmail 15024 invoked by uid 22791); 23 Jan 2007 17:23:17 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc1-s3.bay0.hotmail.com (HELO bay0-omc1-s3.bay0.hotmail.com) (65.54.246.75) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 23 Jan 2007 17:23:10 +0000 Received: from BAY124-W24 ([207.46.11.187]) by bay0-omc1-s3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Tue, 23 Jan 2007 09:23:08 -0800 Message-ID: From: Patrick Zou To: Subject: GDB caused segmentation fault when stepping into C++ code in shared library Date: Tue, 23 Jan 2007 17:23:00 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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-01/txt/msg00294.txt.bz2 Hi,=20 I have some C++ code in shared library, I used set solib-absoluate-prefix a= nd loaded in those libs at the point where I need to exam the source codes.= When I stepped into those codes, (the first one is new an object), GDB com= plained segmentation fault. The code runs OK without gdb though. Stepping into C++ in current exe is OK.=20=20 I even set a breakpoint in the shared library, but not hit either. Wonderin= g the lib is not mapped correctly. Some of you must have made this work, I = believe. Any idea? is the way I compile my codes or some GDB configuration ? I am using gdb6.3 to remotely debug an embedded system on Arm.=20 thanks patrick _________________________________________________________________ Fixing up the home? Live Search can help. http://imagine-windowslive.com/search/kits/default.aspx?kit=3Dimprove&local= e=3Den-US&source=3Dwlmemailtaglinenov06