Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 2/6] Merge target_signal definitions to one place
Date: Sat, 31 Jul 2010 08:03:00 -0000	[thread overview]
Message-ID: <201007310902.55210.pedro@codesourcery.com> (raw)
In-Reply-To: <20100731042223.GA29843@host1.dyn.jankratochvil.net>

On Saturday 31 July 2010 05:22:23, Jan Kratochvil wrote:
> On Sat, 31 Jul 2010 01:23:21 +0200, Pedro Alves wrote:
> > Thanks.  In that case, you should also update the server.o rule, which
> > depends on server.c, which now depends on signals.def.
> 
> And I missed its dependency on signals.h having dependency signals.def is not
> enough wrt future changes, OK.
> 

I am very sorry, I meant signals.o -> signals.c -> signals.def, not
server.*.  :-/  I don't know why I wrote server.o,server.c.  :-(
server.c's dependency is always through signals.h, which is included
by server.h, and $(server_h) is depending on server.def, so that
was fine.  It's signals.c that has a direct include of signals.def.
Mainly a pedantic correctness issue, since signals.c is depending
on signals.h...

I've applied the patch below.

-- 
Pedro Alves

2010-07-31  Pedro Alves  <pedro@codesourcery.com>

	* Makefile.in (signals_h): New.
	(server_h): Depend on it.
	(server.o): Don't depend on $(signals_def).
	(signals.o): Depend on $(signals_def).

---
 gdb/gdbserver/Makefile.in |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Index: src/gdb/gdbserver/Makefile.in
===================================================================
--- src.orig/gdb/gdbserver/Makefile.in	2010-07-31 08:40:49.000000000 +0100
+++ src/gdb/gdbserver/Makefile.in	2010-07-31 08:53:16.000000000 +0100
@@ -293,9 +293,10 @@ regdat_sh = $(srcdir)/../regformats/regd
 regdef_h = $(srcdir)/../regformats/regdef.h
 regcache_h = $(srcdir)/regcache.h
 signals_def = $(srcdir)/../../include/gdb/signals.def
+signals_h = $(srcdir)/../../include/gdb/signals.h $(signals_def)
 server_h = $(srcdir)/server.h $(regcache_h) config.h $(srcdir)/target.h \
 		$(srcdir)/mem-break.h $(srcdir)/../common/gdb_signals.h \
-		$(srcdir)/../../include/gdb/signals.h $(signals_def)
+		$(signals_h)
 
 linux_low_h = $(srcdir)/linux-low.h
 
@@ -335,14 +336,14 @@ mem-break.o: mem-break.c $(server_h)
 proc-service.o: proc-service.c $(server_h) $(gdb_proc_service_h)
 regcache.o: regcache.c $(server_h) $(regdef_h)
 remote-utils.o: remote-utils.c terminal.h $(server_h)
-server.o: server.c $(server_h) $(signals_def)
+server.o: server.c $(server_h)
 target.o: target.c $(server_h)
 thread-db.o: thread-db.c $(server_h) $(linux_low_h) $(gdb_proc_service_h)
 tracepoint.o: tracepoint.c $(server_h)
 utils.o: utils.c $(server_h)
 gdbreplay.o: gdbreplay.c config.h
 
-signals.o: ../common/signals.c $(server_h)
+signals.o: ../common/signals.c $(server_h) $(signals_def)
 	$(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< -DGDBSERVER
 
 memmem.o: ../gnulib/memmem.c


  reply	other threads:[~2010-07-31  8:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 22:51 Jan Kratochvil
2010-07-29 11:22 ` Pedro Alves
2010-07-30 23:02   ` Jan Kratochvil
2010-07-30 23:23     ` Pedro Alves
2010-07-31  4:23       ` Jan Kratochvil
2010-07-31  8:03         ` Pedro Alves [this message]
2010-07-31  8:41           ` Jan Kratochvil

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=201007310902.55210.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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