This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] The MIPS/Linux port
- To: gdb-patches at sources dot redhat dot com
- Subject: Re: [RFA] The MIPS/Linux port
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Wed, 4 Jul 2001 14:51:13 -0700
- References: <20010704121952.A17445@nevyn.them.org>
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 <hjl@gnu.org>
* 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