This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: patch: solib_break from _r_debug.r_brk
- From: Daniel Jacobowitz <drow at false dot org>
- To: Aleksandar Ristovski <aristovski at qnx dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Sun, 9 Oct 2011 22:31:55 -0400
- Subject: Re: patch: solib_break from _r_debug.r_brk
- References: <j61tbv$l88$1@dough.gmane.org> <4E847A11.6080800@redhat.com> <j61v49$2ee$1@dough.gmane.org> <j621ob$lv5$1@dough.gmane.org> <m3vcs5rg0v.fsf@fleche.redhat.com> <4E8A1D11.3070006@qnx.com>
On Mon, Oct 3, 2011 at 4:37 PM, Aleksandar Ristovski <aristovski@qnx.com> wrote:
> Tom, thanks for looking into this, but I have meanwhile done further testing
> on gnu/linux and uncovered that it is not worth pursuing. While it works for
> us, it doesn't on gnu/linux and I am not sure it can be made generic enough
> to defend it: http://sourceware.org/ml/gdb-patches/2011-10/msg00043.html
FWIW (not much), I looked into this area a year ago also. I thought
I'd posted a patch to use r_debug, but maybe not... Solaris does
something clever in which unrelocated values are available at link
time, so the debugger can pick them up right away - as long as it can
tell if they've been relocated, I guess. Linux just fills in zero
when it has the right value.
--
Thanks,
Daniel