Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Eager <eager@eagercon.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: tromey@redhat.com,
	  "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Support for Xilinx MicroBlaze
Date: Thu, 15 Oct 2009 18:06:00 -0000	[thread overview]
Message-ID: <4AD7647E.30806@eagercon.com> (raw)
In-Reply-To: <20091015171755.GD5272@adacore.com>

Joel Brobecker wrote:
>> I'm just as happy to leave this problem unfixed.  Gcc generates an
>> incorrect CIE entry, which is philosophically not a good thing.
>> But fixing this causes far more problems than it solves.
> 
> One of the things that we perhaps didn't consider is debugging
> code compiled with a compiler other than GCC... Not sure if one
> even exists, though, but that compiler might be generating correct
> debugging info, which would trigger the "bug" in GDB.

There's no other compiler for MicroBlaze.  (I was going to mention
this hypothetical situation, but this has very low probability
of ever being a real concern.)

> Anyway, if "GCC" is unwilling to fix the problem, then GDB has to do
> its best. It's disappointing when that happens, but it's not the first
> time we introduce work-arounds. This one is a little harder to accept
> because it causes GDB to malfunction in case of correct debugging info.
> But it's still better this way, in practice.

It's not so much that GCC is unwilling to fix the problem.  If
I wanted to, I could extend the CIE generation code and modify
the MicroBlaze-specific code in both GCC and GDB.  This would
break debugging existing programs and libraries with the new gdb
as well as break debugging newly compiled code with an old gdb.

(There are ways that this might be synchronized with Xilinx's
release of tool chains to their customers, but I'd be very
reluctant to recommend that a new tool chain be incompatible
with older tool chains unless there was a very compelling reason.)

If anyone can suggest a reasonable way to identify whether the
CIE entry for return address is lr or lr+offset, I'll pursue making
gdb accept both.  This is certainly clear while parsing the CIE,
but it is particularly ugly to put a target-dependent test in
this code.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


  reply	other threads:[~2009-10-15 18:06 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-15 16:32 Michael Eager
2009-10-15 16:44 ` Tom Tromey
2009-10-15 16:47   ` Joel Brobecker
2009-10-15 18:00     ` Tom Tromey
2009-10-15 18:04       ` Tom Tromey
2009-10-15 18:31         ` Joel Brobecker
2009-10-16 12:53         ` Daniel Jacobowitz
2009-10-16 16:14           ` Michael Eager
2009-10-15 17:12   ` Michael Eager
2009-10-15 17:18     ` Joel Brobecker
2009-10-15 18:06       ` Michael Eager [this message]
2009-10-15 16:46 ` Joel Brobecker
2009-10-15 17:14   ` Michael Eager
2009-10-15 19:31   ` Michael Eager
2009-10-16  7:53     ` Build-failure from " Pierre Muller
2009-10-16 15:56       ` Michael Eager
2009-10-16 16:11         ` Pierre Muller
2009-10-16 16:35         ` Joel Brobecker
2009-10-16 23:21           ` Michael Eager
  -- strict thread matches above, loose matches on Subject: below --
2009-10-06  1:35 Michael Eager
2009-10-06  7:14 ` Eli Zaretskii
2009-10-14  1:47 ` Joel Brobecker
2009-10-14 17:49   ` Michael Eager
2009-10-14 17:56     ` Daniel Jacobowitz
2009-10-14 18:01       ` Michael Eager

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=4AD7647E.30806@eagercon.com \
    --to=eager@eagercon.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@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