Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "H . J . Lu" <hjl@lucon.org>
To: Jakub Jelinek <jakub@redhat.com>, echristo@redhat.com
Cc: binutils@sources.redhat.com, GDB <gdb@sources.redhat.com>,
	gcc-patches@gcc.gnu.org
Subject: PATCH: Use stabs for Linux/mips (Re: binutils is broken on ELF/MIPS)
Date: Mon, 03 Jun 2002 16:25:00 -0000	[thread overview]
Message-ID: <20020603162527.A2073@lucon.org> (raw)
In-Reply-To: <20020603153716.A1294@lucon.org>; from hjl@lucon.org on Mon, Jun 03, 2002 at 03:37:16PM -0700

[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]

On Mon, Jun 03, 2002 at 03:37:16PM -0700, H . J . Lu wrote:
> On Tue, Jun 04, 2002 at 12:32:46AM +0200, Jakub Jelinek wrote:
> > On Mon, Jun 03, 2002 at 11:57:03AM -0700, H . J . Lu wrote:
> > > On Mon, Jun 03, 2002 at 10:41:31AM -0700, H . J . Lu wrote:
> > > > 
> > > > Jakub, I believe your patch
> > > > 
> > > > http://sources.redhat.com/ml/binutils/2001-11/msg00580.html
> > > > 
> > > > breaks ELF/MIPS since it didn't modify ELF/MIPS to support relocating
> > > > STT_SECTION sym in SHF_MERGE section. As the result, the ELF/MIPS
> > > > linker generates incorrect debug information. Could you please look
> > > > into it?
> > > > 
> > > > BTW, I don't know if ELF/MIPS is the only broken target.
> > > > 
> > > > Thanks.
> > > > 
> > > > 
> > > 
> > > This patch makes gdb 5.2 happy. However, I have no ideas if it is
> > > correct. Could someone please take a look?
> > 
> > If looks fine to me, if it works, I'm all for it.
> > 
> 
> I was wrong to say gdb 5.2 was happy. It didn't complain now. But
> I still can't debug Linux/mipsel binaries compled with gcc 3.1.1.
> 
> 

It turned out gas doesn't support dwarf debug info for Linux/mipsel
at all. ".file" and ".loc" don't do much for dwarf. Since no much
has been done for dwarf on Linux/mipsel, I am submitting this
patch to use stabs instead of DWARF on Linux/mipsel.



H.J.

[-- Attachment #2: gcc-mips-stabs.patch --]
[-- Type: text/plain, Size: 452 bytes --]

2002-01-12  H.J. Lu <hjl@gnu.org>

	* config/mips/linux.h (PREFERRED_DEBUGGING_TYPE): Set to
	DBX_DEBUG.

--- gcc/config/mips/linux.h.stabs	Fri Jan 11 09:30:08 2002
+++ gcc/config/mips/linux.h	Sat Jan 12 10:50:10 2002
@@ -289,3 +289,7 @@ void FN ()							\
    it.  */
 #undef ASM_OUTPUT_REG_PUSH
 #undef ASM_OUTPUT_REG_POP
+
+/* Use stabs instead of DWARF debug format.  */
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG

  parent reply	other threads:[~2002-06-03 23:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-02 14:36 Does gdb 5.2 support gcc 3.1.1 on Linux/mips? H . J . Lu
2002-06-02 18:00 ` Daniel Jacobowitz
2002-06-02 19:43   ` H . J . Lu
2002-06-02 22:01     ` Daniel Jacobowitz
2002-06-02 22:05       ` H . J . Lu
2002-06-02 22:09         ` Daniel Jacobowitz
2002-06-02 22:42           ` H . J . Lu
2002-06-02 23:03             ` H . J . Lu
2002-06-02 23:10               ` H . J . Lu
2002-06-03  4:22                 ` Daniel Berlin
2002-06-03  7:18                 ` Daniel Jacobowitz
2002-06-03  8:55                   ` DW_CFA_def_cfa_offset_sf bug? (Re: Does gdb 5.2 support gcc 3.1.1 on Linux/mips?) H . J . Lu
     [not found]                   ` <20020603092959.A27426@lucon.org>
     [not found]                     ` <20020603104131.A28590@lucon.org>
     [not found]                       ` <20020603115703.A29881@lucon.org>
     [not found]                         ` <20020604003246.C20867@sunsite.ms.mff.cuni.cz>
     [not found]                           ` <20020603153716.A1294@lucon.org>
2002-06-03 16:25                             ` H . J . Lu [this message]
2002-06-03 16:41                               ` PATCH: Use stabs for Linux/mips (Re: binutils is broken on ELF/MIPS) Daniel Jacobowitz
2002-06-03 16:51                                 ` H . J . Lu
2002-06-03 17:43                                   ` Richard Henderson
2002-06-03 19:52                                     ` Doug Evans
2002-06-03 19:54                                       ` H . J . Lu
2002-06-03 20:36                                         ` Richard Henderson
2002-06-03 17:50                                   ` Eric Christopher
2002-06-03 18:03                                     ` H . J . Lu
2002-06-03 18:29                                       ` Eric Christopher
2002-06-03 19:47                                         ` H . J . Lu
2002-06-03 18:40                                       ` Daniel Jacobowitz
2002-06-03 19:51                                         ` H . J . Lu
2002-06-03 20:23                                           ` Daniel Jacobowitz
2002-06-03 20:28                                             ` H . J . Lu
2002-06-04 13:18                                         ` Eric Christopher
2002-06-02 23:30       ` Does gdb 5.2 support gcc 3.1.1 on Linux/mips? Jakub Jelinek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020603162527.A2073@lucon.org \
    --to=hjl@lucon.org \
    --cc=binutils@sources.redhat.com \
    --cc=echristo@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=jakub@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox