From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30005 invoked by alias); 29 Nov 2006 15:44:20 -0000 Received: (qmail 29996 invoked by uid 22791); 29 Nov 2006 15:44:19 -0000 X-Spam-Check-By: sourceware.org Received: from imo-d06.mx.aol.com (HELO imo-d06.mx.aol.com) (205.188.157.38) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 29 Nov 2006 15:44:13 +0000 Received: from Jbbachky@aim.com by imo-d06.mx.aol.com (mail_out_v38_r7.6.) id o.c82.8ec2056 (57875) for ; Wed, 29 Nov 2006 10:44:08 -0500 (EST) Received: from MBLK-D29 (mblk-d29.mblk.aol.com [205.188.149.21]) by air-ia03.mail.aol.com (v114.2) with ESMTP id MAILINIA31-e213456daac617; Wed, 29 Nov 2006 10:44:06 -0500 To: gdb@sources.redhat.com Content-Transfer-Encoding: 7bit Subject: gdb-6.6, faking a shared library Date: Wed, 29 Nov 2006 15:44:00 -0000 X-MB-Message-Source: WebUI MIME-Version: 1.0 From: jbbachky@aim.com X-MB-Message-Type: User Content-Type: text/plain; charset="us-ascii"; format=flowed X-Mailer: AIM WebMail 22250 Received: from 192.146.101.24 by MBLK-D29.sysops.aol.com (205.188.149.21) with HTTP (WebMailUI); Wed, 29 Nov 2006 10:44:06 -0500 Message-Id: <8C8E1E45640370E-D40-84C5@MBLK-D29.sysops.aol.com> X-AOL-IP: 205.188.149.21 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: 2006-11/txt/msg00227.txt.bz2 I've got an arm program which makes use of a non-standard shared library and I'm looking for ways to inform gdb that it really is a shared library. What I'm calling a shared library is a subset of glibc which gets linked/mapped to a specific address, and the programs which "link against it" really link against fixed addresses, thus no dynamic linking is involved. Special startup code is used to map the library's addresses for each process which need it. However, since gdb knows nothing about it being shared among other processes (not simply other pthreads sharing the same memory map), bad things happen when a breakpoint in that library is hit by another process. Any ideas for making gdb think that a certain address range is a shared library? My glibc (v2.2.3) is NOT built for pic/dynamic linking. Thus no libthread_db is built. Compiler is gcc v3.4.3, linux is 2.6.10 for ARM. Thanks, John ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.