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>
This commit is contained in:
parent
a4e80b6b64
commit
d08a3fc2bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99883
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user