mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Put the function stabs in traditional order on a.out, or gdb doesn't see
function local variables.
This commit is contained in:
parent
b1897c197c
commit
178576c62f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34269
@ -119,6 +119,9 @@ Boston, MA 02111-1307, USA. */
|
||||
fprintf (FILE, "\t.version\t\"01.01\"\n"); \
|
||||
} while (0)
|
||||
|
||||
/* don't override the defauts, in case gdb gets upset */
|
||||
#undef ASM_IDENTIFY_GCC
|
||||
|
||||
/* This is how to store into the string BUF
|
||||
the symbol_ref name of an internal numbered label where
|
||||
PREFIX is the class of label and NUM is the number within the class.
|
||||
@ -164,12 +167,6 @@ Boston, MA 02111-1307, USA. */
|
||||
fprintf ((FILE), "\t.p2align %d,0x90\n", i386_align_loops)
|
||||
|
||||
|
||||
/* A C statement to output assembler commands which will identify the object
|
||||
file as having been compile with GNU CC. We don't need or want this for
|
||||
GDB. */
|
||||
#undef ASM_IDENTIFY_GCC
|
||||
#define ASM_IDENTIFY_GCC(FILE)
|
||||
|
||||
/* conditionalize the use of ".section rodata" on elf mode - otherwise .text */
|
||||
#undef USE_CONST_SECTION
|
||||
#define USE_CONST_SECTION TARGET_ELF
|
||||
@ -283,6 +280,9 @@ do { \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#undef DBX_FUNCTION_FIRST
|
||||
#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
|
||||
|
||||
/* stabs-in-elf has offsets relative to function beginning */
|
||||
#undef DBX_OUTPUT_LBRAC
|
||||
#define DBX_OUTPUT_LBRAC(file,name) \
|
||||
|
@ -119,6 +119,9 @@ Boston, MA 02111-1307, USA. */
|
||||
fprintf (FILE, "\t.version\t\"01.01\"\n"); \
|
||||
} while (0)
|
||||
|
||||
/* don't override the defauts, in case gdb gets upset */
|
||||
#undef ASM_IDENTIFY_GCC
|
||||
|
||||
/* This is how to store into the string BUF
|
||||
the symbol_ref name of an internal numbered label where
|
||||
PREFIX is the class of label and NUM is the number within the class.
|
||||
@ -164,12 +167,6 @@ Boston, MA 02111-1307, USA. */
|
||||
fprintf ((FILE), "\t.p2align %d,0x90\n", i386_align_loops)
|
||||
|
||||
|
||||
/* A C statement to output assembler commands which will identify the object
|
||||
file as having been compile with GNU CC. We don't need or want this for
|
||||
GDB. */
|
||||
#undef ASM_IDENTIFY_GCC
|
||||
#define ASM_IDENTIFY_GCC(FILE)
|
||||
|
||||
/* conditionalize the use of ".section rodata" on elf mode - otherwise .text */
|
||||
#undef USE_CONST_SECTION
|
||||
#define USE_CONST_SECTION TARGET_ELF
|
||||
@ -283,6 +280,9 @@ do { \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#undef DBX_FUNCTION_FIRST
|
||||
#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
|
||||
|
||||
/* stabs-in-elf has offsets relative to function beginning */
|
||||
#undef DBX_OUTPUT_LBRAC
|
||||
#define DBX_OUTPUT_LBRAC(file,name) \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user