Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@gcc.gnu.org>
To: Hans-Peter Nilsson <hp@axis.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: ARM Simulator build broken
Date: Tue, 16 Nov 2004 15:24:00 -0000	[thread overview]
Message-ID: <1100618624.25423.73.camel@pc960.cambridge.arm.com> (raw)
In-Reply-To: <1100608818.25423.66.camel@pc960.cambridge.arm.com>

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

On Tue, 2004-11-16 at 12:40, Richard Earnshaw wrote:
> 2004-11-16  Hans-Peter Nilsson  <hp@axis.com>
> 
>         * sim-config.c (sim_config): Recognize when a bfd has unspecified
>         endian information.
> 
>         * Make-common.in (sim-load.o): Depend on $(sim_main_headers) and
>         $(remote_sim_h) too.
>         (sim_main_headers): Add sim-utils.h.
> 
> This patch breaks the ARM simulator build.  The patch introduces a
> dependency of sim-load on sim-main.h which isn't needed, and the ARM
> simulator does not provide such a header (since it doesn't build any of
> the other files in sim/common).
> 
> R.

Here's my proposed patch:

<date> Richard Earnshaw  <rearnsha@arm.com>

	* Make-common.in (sim_basics_headers): New.
	(sim_main_headers): Move basics headers and sub-dependencies
	to sim_basics_headers).  Add the dependencies through that.
	(sim-load.c): Depend on sim_basics_headers not 
	sim_main_headers.

OK?



[-- Attachment #2: sim.patch --]
[-- Type: text/x-patch, Size: 2351 bytes --]

Index: Make-common.in
===================================================================
RCS file: /cvs/src/src/sim/common/Make-common.in,v
retrieving revision 1.14
diff -p -r1.14 Make-common.in
*** Make-common.in	16 Nov 2004 07:02:26 -0000	1.14
--- Make-common.in	16 Nov 2004 15:20:21 -0000
*************** sim_main_headers = \
*** 300,322 ****
  	sim-main.h \
  	$(srccom)/sim-assert.h \
  	$(srccom)/sim-base.h \
- 	$(srccom)/sim-basics.h \
- 	$(srccom)/sim-config.h \
  	$(srccom)/sim-cpu.h \
  	$(srccom)/sim-engine.h \
  	$(srccom)/sim-events.h \
- 	$(srccom)/sim-inline.h \
  	$(srccom)/sim-memopt.h \
  	$(srccom)/sim-model.h \
  	$(srccom)/sim-module.h \
  	$(srccom)/sim-profile.h \
- 	$(srccom)/sim-signal.h \
  	$(srccom)/sim-trace.h \
- 	$(srccom)/sim-utils.h \
  	$(srccom)/sim-watch.h \
! 	tconfig.h \
  	$(SIM_EXTRA_DEPS)
  
  # Exported version of sim_main_headers.
  SIM_MAIN_DEPS = \
  	$(sim_main_headers)
--- 300,329 ----
  	sim-main.h \
  	$(srccom)/sim-assert.h \
  	$(srccom)/sim-base.h \
  	$(srccom)/sim-cpu.h \
  	$(srccom)/sim-engine.h \
  	$(srccom)/sim-events.h \
  	$(srccom)/sim-memopt.h \
  	$(srccom)/sim-model.h \
  	$(srccom)/sim-module.h \
  	$(srccom)/sim-profile.h \
  	$(srccom)/sim-trace.h \
  	$(srccom)/sim-watch.h \
! 	$(sim_basics_headers) \
  	$(SIM_EXTRA_DEPS)
  
+ sim_basics_headers = \
+ 	$(srccom)/sim-basics.h \
+ 	tconfig.h \
+ 	$(srccom)/sim-config.h \
+ 	$(srccom)/sim-inline.h \
+ 	$(srccom)/sim-types.h \
+ 	$(srccom)/sim-bits.h \
+ 	$(srccom)/sim-endian.h \
+ 	$(srccom)/sim-signal.h \
+ 	$(srccom)/sim-arange.h \
+ 	$(srccom)/sim-utils.h
+ 
  # Exported version of sim_main_headers.
  SIM_MAIN_DEPS = \
  	$(sim_main_headers)
*************** sim-utils.o: $(srccom)/sim-utils.c $(sim
*** 473,479 ****
  sim-watch.o: $(srccom)/sim-watch.c $(sim_main_headers)
  	$(CC) -c $(srccom)/sim-watch.c $(ALL_CFLAGS)
  
! sim-load.o: $(srccom)/sim-load.c $(callback_h) $(sim_main_headers) $(remote_sim_h)
  	$(CC) -c $(srccom)/sim-load.c $(ALL_CFLAGS)
  
  
--- 480,486 ----
  sim-watch.o: $(srccom)/sim-watch.c $(sim_main_headers)
  	$(CC) -c $(srccom)/sim-watch.c $(ALL_CFLAGS)
  
! sim-load.o: $(srccom)/sim-load.c $(callback_h) $(sim_basics_headers) $(remote_sim_h)
  	$(CC) -c $(srccom)/sim-load.c $(ALL_CFLAGS)
  
  

  reply	other threads:[~2004-11-16 15:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-16 12:40 Richard Earnshaw
2004-11-16 15:24 ` Richard Earnshaw [this message]
2004-11-16 15:36   ` Hans-Peter Nilsson
2004-11-17 15:04     ` Richard Earnshaw
2004-11-17 16:06       ` Richard Earnshaw
2004-11-17 18:25         ` Hans-Peter Nilsson
2004-11-17 20:38           ` Andrew Cagney
2004-11-18  0:08             ` Hans-Peter Nilsson
2004-11-18 10:22               ` Richard Earnshaw
2004-11-24 18:42         ` Alexandre Oliva
2004-11-25 10:31           ` Richard Earnshaw
2004-11-25 10:48           ` Richard Earnshaw
2004-11-29 18:27             ` Alexandre Oliva

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=1100618624.25423.73.camel@pc960.cambridge.arm.com \
    --to=rearnsha@gcc.gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=hp@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