summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/dbxout.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-08 11:54:04 +0000
committerpeter <peter@FreeBSD.org>1998-03-08 11:54:04 +0000
commit89f7f39c2ed3872e239597fa89698b5a81f29c28 (patch)
tree5c082246071c4c5477d279c3b1639025fe6bbf41 /contrib/gcc/dbxout.c
parent10c5ccc30ae8155c4d8bd25aeffd9ed0e476c387 (diff)
downloadFreeBSD-src-89f7f39c2ed3872e239597fa89698b5a81f29c28.zip
FreeBSD-src-89f7f39c2ed3872e239597fa89698b5a81f29c28.tar.gz
Put the function stabs in traditional order on a.out, or gdb doesn't see
function local variables.
Diffstat (limited to 'contrib/gcc/dbxout.c')
-rw-r--r--contrib/gcc/dbxout.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/gcc/dbxout.c b/contrib/gcc/dbxout.c
index e322614..605e2da 100644
--- a/contrib/gcc/dbxout.c
+++ b/contrib/gcc/dbxout.c
@@ -2494,6 +2494,11 @@ dbxout_begin_function (decl)
{
#ifdef DBX_FUNCTION_FIRST
dbxout_really_begin_function (decl);
+#else
+#ifdef DBX_CHECK_FUNCTION_FIRST
+ if (DBX_CHECK_FUNCTION_FIRST)
+ dbxout_really_begin_function (decl);
+#endif
#endif
}
@@ -2509,6 +2514,11 @@ dbxout_function (decl)
{
#ifndef DBX_FUNCTION_FIRST
dbxout_really_begin_function (decl);
+#else
+#ifdef DBX_CHECK_FUNCTION_FIRST
+ if (!(DBX_CHECK_FUNCTION_FIRST))
+ dbxout_really_begin_function (decl);
+#endif
#endif
dbxout_block (DECL_INITIAL (decl), 0, DECL_ARGUMENTS (decl));
#ifdef DBX_OUTPUT_FUNCTION_END
OpenPOWER on IntegriCloud