This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
RFA: tm-nbsd.h: define IN_SOLIB_CALL_TRAMPOLINE
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: RFA: tm-nbsd.h: define IN_SOLIB_CALL_TRAMPOLINE
- From: jtc at redback dot com (J.T. Conklin)
- Date: 21 Mar 2000 12:21:39 -0800
- Reply-To: jtc at redback dot com
I submit the enclosed patch for approval. This allows programs linked
with shared libraries to be debugged on a.out-based NetBSD targets.
2000-03-21 J.T. Conklin <jtc@redback.com>
* tm-nbsd.h (IN_SOLIB_CALL_TRAMPOLINE): Define if not
SVR4_SHARED_LIBS.
Index: tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/tm-nbsd.h,v
retrieving revision 1.1.1.2
diff -c -3 -p -r1.1.1.2 tm-nbsd.h
*** tm-nbsd.h 1999/07/07 20:11:33 1.1.1.2
--- tm-nbsd.h 2000/03/21 20:17:52
***************
*** 18,20 ****
--- 18,29 ----
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+
+ #ifndef SVR4_SHARED_LIBS
+
+ /* Return non-zero if we are in a shared library trampoline code stub. */
+
+ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
+ (name && !strcmp(name, "_DYNAMIC"))
+
+ #endif /* !SVR4_SHARED_LIBS */
--
J.T. Conklin
RedBack Networks