aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/tm-sunos.h
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-04-08 00:36:08 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-04-08 00:36:08 +0000
commita9617bd573d81d06293e1ce641b598956639f7c4 (patch)
tree809b1de50444863e655f9376ba96e70f46d0e395 /gdb/config/tm-sunos.h
parent2fe3b329f69ca294a8ad3f1f655df7db33a6eb65 (diff)
downloadgdb-a9617bd573d81d06293e1ce641b598956639f7c4.zip
gdb-a9617bd573d81d06293e1ce641b598956639f7c4.tar.gz
gdb-a9617bd573d81d06293e1ce641b598956639f7c4.tar.bz2
* config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
Define to handle stepping into -g compiled shared libraries. * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle stepping into -g compiled shared libraries.
Diffstat (limited to 'gdb/config/tm-sunos.h')
-rw-r--r--gdb/config/tm-sunos.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/config/tm-sunos.h b/gdb/config/tm-sunos.h
index 2559efc..1a1ee10 100644
--- a/gdb/config/tm-sunos.h
+++ b/gdb/config/tm-sunos.h
@@ -1,6 +1,6 @@
/* Target machine sub-description for SunOS version 4.
This is included by other tm-*.h files to specify SunOS-specific stuff.
- Copyright 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+ Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of GDB.
@@ -19,3 +19,12 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "solib.h" /* Support for shared libraries. */
+
+/* Return non-zero if we are in a shared library trampoline code stub. */
+
+#define IN_SOLIB_TRAMPOLINE(pc, name) lookup_solib_trampoline_symbol_by_pc (pc)
+
+/* If PC is in a shared library trampoline code, return the PC
+ where the function itself actually starts. If not, return 0. */
+
+#define SKIP_TRAMPOLINE_CODE(pc) find_solib_trampoline_target (pc)