diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2010-11-15 12:31:05 +0000 |
---|---|---|
committer | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2010-11-15 12:31:05 +0000 |
commit | bc6b4acc70e80ed6abb69e5c7171f55835a2e830 (patch) | |
tree | d2467be87232a1aee5506d5d5800e7634cca4b8f /gas/config | |
parent | 251665fc5f2083d8ca987a30534918fec6b3b969 (diff) | |
download | gdb-bc6b4acc70e80ed6abb69e5c7171f55835a2e830.zip gdb-bc6b4acc70e80ed6abb69e5c7171f55835a2e830.tar.gz gdb-bc6b4acc70e80ed6abb69e5c7171f55835a2e830.tar.bz2 |
* config/obj-elf.c (elf_generate_asm_lineno): New function.
(elf_process_stab): New function.
(elf_format_ops): Always use them as generate_asm_lineno,
process_stab members.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-elf.c | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 79f8033..d38721b 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -2388,6 +2388,29 @@ sco_id (void) #endif /* SCO_ELF */ +static void +elf_generate_asm_lineno (void) +{ +#ifdef NEED_ECOFF_DEBUG + if (ECOFF_DEBUGGING) + ecoff_generate_asm_lineno (); +#endif +} + +static void +elf_process_stab (segT sec, + int what, + const char *string, + int type, + int other, + int desc) +{ +#ifdef NEED_ECOFF_DEBUG + if (ECOFF_DEBUGGING) + ecoff_stab (sec, what, string, type, other, desc); +#endif +} + static int elf_separate_stab_sections (void) { @@ -2428,13 +2451,8 @@ const struct format_ops elf_format_ops = 0, /* s_get_type */ 0, /* s_set_type */ elf_copy_symbol_attributes, -#ifdef NEED_ECOFF_DEBUG - ecoff_generate_asm_lineno, - ecoff_stab, -#else - 0, /* generate_asm_lineno */ - 0, /* process_stab */ -#endif + elf_generate_asm_lineno, + elf_process_stab, elf_separate_stab_sections, elf_init_stab_section, elf_sec_sym_ok_for_reloc, |