Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Danny Backx <danny.backx@scarlet.be>
To: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
Cc: dannybackx@users.sourceforge.net, binutils@sourceware.org,
	        gdb@sourceware.org
Subject: Re: Your bfd changes broke sh sim
Date: Sat, 19 Jul 2008 06:45:00 -0000	[thread overview]
Message-ID: <1216446747.30145.46.camel@dannypc> (raw)
In-Reply-To: <200807190352.m6J3qdr0011498@ignucius.se.axis.com>

On Sat, 2008-07-19 at 05:52 +0200, Hans-Peter Nilsson wrote:
> > From: Danny Backx <danny.backx@scarlet.be>
> > Date: Fri, 18 Jul 2008 20:12:39 +0200
> 
> > I've tested (and tested again) with
> > 	./configure --enable-targets=all
> 
> Looks like you didn't even try and build binutils *without*
> --enable-targets=all, because you broke e.g. sh-elf (and yes,
> sh-pe too).  For --target=sh-elf, make all:

I was told to check --enable-targets=all in addition to what I was doing
(several arm targets). I did that.

Here's what I just found (unless I overlooked something) :
- I argued with Nick about where this code needed to be, the initial
  place was peXXigen.c but I argued that this appeared to be the wrong
  place because it could get generated more than once.
- Then I was given a choice where to put it, evidently I made the wrong
  choice (pe-arm-wince.c).
- I just moved it back and tested with three builds :
  configure --enable-targets=all
  configure --target=arm-wince
  configure --target=sh-elf

  and found that only the last one failed to build, even with the code
  in peXXigen.c.
- Inspection reveals that peXXigen.c isn't compiled for sh-elf, so this
  was the wrong choice too.

I see three options :
- remove the line that causes this in coff-sh.c and change it as in all
  the other architectures. Then all this only works for ARM, not for ARM
  and SH as it is supposed to.
- remove all the smart configuration stuff that Nick talked me into and
  revert all this to a dumb ARM-only patch
- find a better place to store the code

Please advise.

	Danny

> I suggest you revert your change and move
> pe_print_ce_compressed_pdata out of pe-arm-wince.c (clearly the
> wrong place) and into peXXigen.c or its own file (don't forget
> to adjust the build machinery), making it the default of a
> target-dependent hook, overridden for pe-mips or something.
> 
> brgds, H-P
> 
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


  reply	other threads:[~2008-07-19  5:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18 16:57 Hans-Peter Nilsson
2008-07-18 18:51 ` Danny Backx
2008-07-18 18:52   ` Hans-Peter Nilsson
2008-07-19  5:53   ` Hans-Peter Nilsson
2008-07-19  6:45     ` Danny Backx [this message]
2008-07-19 14:57       ` Hans-Peter Nilsson

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=1216446747.30145.46.camel@dannypc \
    --to=danny.backx@scarlet.be \
    --cc=binutils@sourceware.org \
    --cc=dannybackx@users.sourceforge.net \
    --cc=gdb@sourceware.org \
    --cc=hans-peter.nilsson@axis.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