From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: gdb-patches@sources.redhat.com Subject: Re: [RFA] The MIPS/Linux port Date: Wed, 04 Jul 2001 14:51:00 -0000 Message-id: <20010704145113.C14482@lucon.org> References: <20010704121952.A17445@nevyn.them.org> X-SW-Source: 2001-07/msg00064.html On Wed, Jul 04, 2001 at 12:19:52PM -0700, Daniel Jacobowitz wrote: > addressed in either binutils or gcc, and HJ posted a potential patch > for it two days ago. I have verified that this patch works for me. Since many gcc mips patches haven't been reviewed, I didn't send it to gcc. H.J. ---- 2001-07-02 H.J. Lu * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined. --- gcc/config/mips/linux.h.stabs Mon Jul 2 21:53:09 2001 +++ gcc/config/mips/linux.h Mon Jul 2 21:58:00 2001 @@ -182,6 +182,22 @@ Boston, MA 02111-1307, USA. */ #undef SET_ASM_OP #define SET_ASM_OP "\t.dummy\t" +#undef ASM_OUTPUT_SOURCE_LINE +#define ASM_OUTPUT_SOURCE_LINE(FILE, LINE) \ +do \ + { \ + static int sym_lineno = 1; \ + fprintf (FILE, "%sLM%d:\n\t%s 68,0,%d,%sLM%d", \ + LOCAL_LABEL_PREFIX, sym_lineno, ASM_STABN_OP, \ + LINE, LOCAL_LABEL_PREFIX, sym_lineno); \ + putc ('-', FILE); \ + assemble_name (FILE, \ + XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\ + putc ('\n', FILE); \ + sym_lineno++; \ + } \ +while (0) + /* This is how we tell the assembler that two symbols have the same value. */ #undef ASM_OUTPUT_DEF