summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-07-12 17:35:35 +0000
committerobrien <obrien@FreeBSD.org>2002-07-12 17:35:35 +0000
commit599a83dfc41a1c086e0f0ad7d60c120f236827ef (patch)
tree715f35ad7e670a6c1e45a431998e3b96c995c539 /contrib
parent19a21418a0fb18fd4d67c5a1a955e62500cffe2e (diff)
downloadFreeBSD-src-599a83dfc41a1c086e0f0ad7d60c120f236827ef.zip
FreeBSD-src-599a83dfc41a1c086e0f0ad7d60c120f236827ef.tar.gz
When I decided to use a stock dbxout.c rather than merge the rev 1.2 change
(put the function stabs in traditional order on a.out, or gdb doesn't see function local variables), I failed to remove the related knobs here. Effectively were overrode the ELF-wide definition in elfos.h w/o providing new infrastructure. This is what caused GDB to fail to debug applications compiled and linked with -stabs. This is because GCC was unconditionally inserts .stabs instruction for functions after the function body. GDB was getting confused because what it thinks is function beginning address is actually function ending address. Submitted by: Alexander Kabaev <ak03@gte.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/config/i386/freebsd.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h
index 082781c..5adcac9 100644
--- a/contrib/gcc/config/i386/freebsd.h
+++ b/contrib/gcc/config/i386/freebsd.h
@@ -380,10 +380,6 @@ Boston, MA 02111-1307, USA. */
#undef NO_DBX_FUNCTION_END
#define NO_DBX_FUNCTION_END TARGET_AOUT
-/* In ELF, the function stabs come first, before the relative offsets. */
-#undef DBX_FUNCTION_FIRST
-#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
-
#undef DBX_REGISTER_NUMBER
#define DBX_REGISTER_NUMBER(n) (TARGET_64BIT ? dbx64_register_map[n] \
: (write_symbols == DWARF2_DEBUG \
OpenPOWER on IntegriCloud