aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/svr4.h
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1995-12-18 16:02:00 -0800
committerJim Wilson <wilson@gcc.gnu.org>1995-12-18 16:02:00 -0800
commit7f0d4f6d8392dd3b6655349bf1853b21f08484e1 (patch)
treee44bbed56b79c0bc8a9446c82133d6a9428ebd39 /gcc/config/svr4.h
parent7b7a33b380bc71f5b05bbaf24297161230e37923 (diff)
downloadgcc-7f0d4f6d8392dd3b6655349bf1853b21f08484e1.zip
gcc-7f0d4f6d8392dd3b6655349bf1853b21f08484e1.tar.gz
gcc-7f0d4f6d8392dd3b6655349bf1853b21f08484e1.tar.bz2
(ASM_IDENTIFY_GCC): Don't output stab here.
(ASM_IDENTIFY_GCC_AFTER_SOURCE): Output stab here instead of above. From-SVN: r10804
Diffstat (limited to 'gcc/config/svr4.h')
-rw-r--r--gcc/config/svr4.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h
index 2ded0fa..15f07e1 100644
--- a/gcc/config/svr4.h
+++ b/gcc/config/svr4.h
@@ -286,15 +286,23 @@ do { \
#define DBX_BLOCKS_FUNCTION_RELATIVE 1
/* When using stabs, gcc2_compiled must be a stabs entry, not an
- ordinary symbol, or gdb won't see it. The stabs entry must be
- before the N_SO in order for gdb to find it. */
+ ordinary symbol, or gdb won't see it. Furthermore, since gdb reads
+ the input piecemeal, starting with each N_SO, it's a lot easier if
+ the gcc2 flag symbol is *after* the N_SO rather than before it. So
+ we emit an N_OPT stab there. */
#define ASM_IDENTIFY_GCC(FILE) \
do \
{ \
if (write_symbols != DBX_DEBUG) \
fputs ("gcc2_compiled.:\n", FILE); \
- else \
+ } \
+while (0)
+
+#define ASM_IDENTIFY_GCC_AFTER_SOURCE(FILE) \
+do \
+ { \
+ if (write_symbols == DBX_DEBUG) \
fputs ("\t.stabs\t\"gcc2_compiled.\", 0x3c, 0, 0, 0\n", FILE); \
} \
while (0)