This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: ELF shared library breakpoints
- To: kettenis@wins.uva.nl
- Subject: Re: ELF shared library breakpoints
- From: Stan Shebs <shebs@cygnus.com>
- Date: Fri, 4 Jun 1999 11:37:07 -0700
- CC: jimb@cygnus.com, gdb-patches@sourceware.cygnus.com
Date: Fri, 4 Jun 1999 00:00:56 +0200 (CEST)
From: Mark Kettenis <kettenis@wins.uva.nl>
From: Jim Blandy <jimb@cygnus.com>
Date: 03 Jun 1999 16:19:35 -0500
Hmm. There's some disagreement on this issue:
1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
* solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
this breaks rerunning on sun4 native.
Oops! I missed that one. What does Stan mean by sun4 native? Is
that a running SunOS 4, or SunOS 5 (Solaris 2)?
SunOS 4. (A Cygnus-ism I suppose - "sun4" means 4.x, "sol2" means 5.x.)
Not callinf
disable_breakpoints_in_shlibs breaks rerunning on both Linux and the
Hurd, and I suspect that it breaks on other systems with ELF shared
libraries as well.
Sigh. We really need a test case for this, so that test runs catch.
If calling disable_breakpoints_in_shlibs only breaks SunOS 4, which I
suspect since there is also a bug report concerning Solaris, the code
could be wrapped in #ifdef SVR4_SHARED_LIBS.
That seems rational, although I want to understand the issue this
time instead of fixing symptoms. Then we can write a comment on this
and not have to be puzzled ever again (on this subject anyway :-) ).
Stan