WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH]: correctly generate dependencies for gdbsx

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]: correctly generate dependencies for gdbsx
From: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Date: Mon, 25 Oct 2010 17:41:09 +0100
Cc:
Delivery-date: Mon, 25 Oct 2010 09:47:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
gdbsx hacks CFLAGS to remove optimisations for easier debugging, however
this breaks dep generation due to an early evaluation of CFLAGS and
leaves stale files called "..d" after a make clean. We could possibly
fix this by separating dep generation from the rest of CFLAGS but it
seems a little invasive. The gdbsx hackers can do their own thing during
development and testing anyway...

Signed-off-by: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>

diff -r 2e8bdff60d01 tools/debugger/gdbsx/Rules.mk
--- a/tools/debugger/gdbsx/Rules.mk     Sun Oct 24 13:18:26 2010 +0100
+++ b/tools/debugger/gdbsx/Rules.mk     Mon Oct 25 17:37:53 2010 +0100
@@ -2,8 +2,3 @@ include $(XEN_ROOT)/tools/Rules.mk
 
 CFLAGS   += -Werror -Wmissing-prototypes 
 # (gcc 4.3x and later)   -Wconversion -Wno-sign-conversion
-
-# just in case have to debug gdbsx, keep life simple.
-TMPFLAGS := $(CFLAGS)
-CFLAGS := $(filter-out -O% -DNDEBUG -fomit-frame-pointer, $(TMPFLAGS))
-CFLAGS += -O0
diff -r 2e8bdff60d01 tools/debugger/gdbsx/gx/Makefile
--- a/tools/debugger/gdbsx/gx/Makefile  Sun Oct 24 13:18:26 2010 +0100
+++ b/tools/debugger/gdbsx/gx/Makefile  Mon Oct 25 17:37:53 2010 +0100
@@ -9,7 +9,7 @@ all: gx_all.a
 
 .PHONY: clean
 clean:
-       rm -rf gx_all.a *.o 
+       rm -rf gx_all.a *.o .*.d
 
 
 #%.o: %.c $(GX_HDRS) Makefile
diff -r 2e8bdff60d01 tools/debugger/gdbsx/xg/Makefile
--- a/tools/debugger/gdbsx/xg/Makefile  Sun Oct 24 13:18:26 2010 +0100
+++ b/tools/debugger/gdbsx/xg/Makefile  Mon Oct 25 17:37:53 2010 +0100
@@ -32,5 +32,5 @@ xen-headers:
 
 .PHONY: clean
 clean:
-       rm -rf xen xg_all.a $(XG_OBJS) 
+       rm -rf xen xg_all.a $(XG_OBJS)  .*.d
 



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]: correctly generate dependencies for gdbsx, Gianni Tedesco <=