Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: jbbachky@aim.com
To: gdb@sources.redhat.com
Subject: gdb-6.6, faking a shared library
Date: Wed, 29 Nov 2006 15:44:00 -0000	[thread overview]
Message-ID: <8C8E1E45640370E-D40-84C5@MBLK-D29.sysops.aol.com> (raw)

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.


             reply	other threads:[~2006-11-29 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 15:44 jbbachky [this message]
2006-11-29 15:46 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8C8E1E45640370E-D40-84C5@MBLK-D29.sysops.aol.com \
    --to=jbbachky@aim.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox