svn commit: trunk/buildroot/toolchain/gdb

andersen at uclibc.org andersen at uclibc.org
Thu Apr 6 18:08:46 UTC 2006


Author: andersen
Date: 2006-04-06 11:08:44 -0700 (Thu, 06 Apr 2006)
New Revision: 14770

Log:
akvadrako writes:
The term gdb-client is deceptive - although it parallels the gdb-server name,
it is actually a full fledged gdb version. I want to use it to debug uClibc
core files on my host system. Although I haven't got that to work yet, I wasted
time figuring out how to do build gdb for the host not realizing it already had
a target. With this documentation change, things would have been a lot clearer
to me.


Modified:
   trunk/buildroot/toolchain/gdb/Config.in
   trunk/buildroot/toolchain/gdb/gdb.mk


Changeset:
Modified: trunk/buildroot/toolchain/gdb/Config.in
===================================================================
--- trunk/buildroot/toolchain/gdb/Config.in	2006-04-06 17:47:53 UTC (rev 14769)
+++ trunk/buildroot/toolchain/gdb/Config.in	2006-04-06 18:08:44 UTC (rev 14770)
@@ -14,16 +14,16 @@
 	    Build the gdbserver stub to run on the target.
 	    A full gdb is needed to debug the progam.
 
-config BR2_PACKAGE_GDB_CLIENT
-	bool "Build gdb client for the Host"
+config BR2_PACKAGE_GDB_HOST
+	bool "Build gdb for the Host"
 	default n
 	help
-	    Build gdb to run on the host to debug programs running on the target.
+	    Build gdb to run on the host to debug programs run on the target.
 
 choice
 	prompt "GDB debugger Version"
 	default BR2_GDB_VERSION_6_3
-	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_GDB_SERVER || BR2_PACKAGE_GDB_CLIENT
+	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_GDB_SERVER || BR2_PACKAGE_GDB_HOST
 	help
 	  Select the version of gdb you wish to use.
 

Modified: trunk/buildroot/toolchain/gdb/gdb.mk
===================================================================
--- trunk/buildroot/toolchain/gdb/gdb.mk	2006-04-06 17:47:53 UTC (rev 14769)
+++ trunk/buildroot/toolchain/gdb/gdb.mk	2006-04-06 18:08:44 UTC (rev 14770)
@@ -159,15 +159,15 @@
 
 ######################################################################
 #
-# gdb client
+# gdb on host
 #
 ######################################################################
 
-GDB_CLIENT_DIR:=$(TOOL_BUILD_DIR)/gdbclient-$(GDB_VERSION)
+GDB_HOST_DIR:=$(TOOL_BUILD_DIR)/gdbhost-$(GDB_VERSION)
 
-$(GDB_CLIENT_DIR)/.configured: $(GDB_DIR)/.unpacked
-	mkdir -p $(GDB_CLIENT_DIR)
-	(cd $(GDB_CLIENT_DIR); \
+$(GDB_HOST_DIR)/.configured: $(GDB_DIR)/.unpacked
+	mkdir -p $(GDB_HOST_DIR)
+	(cd $(GDB_HOST_DIR); \
 		gdb_cv_func_sigsetjmp=yes \
 		$(GDB_DIR)/configure \
 		--prefix=$(STAGING_DIR) \
@@ -180,26 +180,26 @@
 		--without-included-gettext \
 		--enable-threads \
 	);
-	touch  $(GDB_CLIENT_DIR)/.configured
+	touch  $(GDB_HOST_DIR)/.configured
 
-$(GDB_CLIENT_DIR)/gdb/gdb: $(GDB_CLIENT_DIR)/.configured
-	$(MAKE) -C $(GDB_CLIENT_DIR)
-	strip $(GDB_CLIENT_DIR)/gdb/gdb
+$(GDB_HOST_DIR)/gdb/gdb: $(GDB_HOST_DIR)/.configured
+	$(MAKE) -C $(GDB_HOST_DIR)
+	strip $(GDB_HOST_DIR)/gdb/gdb
 
-$(TARGET_CROSS)gdb: $(GDB_CLIENT_DIR)/gdb/gdb
-	install -c $(GDB_CLIENT_DIR)/gdb/gdb $(TARGET_CROSS)gdb
+$(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb
+	install -c $(GDB_HOST_DIR)/gdb/gdb $(TARGET_CROSS)gdb
 	ln -snf ../../bin/$(REAL_GNU_TARGET_NAME)-gdb \
 		$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/gdb
 	ln -snf $(REAL_GNU_TARGET_NAME)-gdb \
 		$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-gdb
 
-gdbclient: $(TARGET_CROSS)gdb
+gdbhost: $(TARGET_CROSS)gdb
 
-gdbclient-clean:
-	$(MAKE) -C $(GDB_CLIENT_DIR) clean
+gdbhost-clean:
+	$(MAKE) -C $(GDB_HOST_DIR) clean
 
-gdbclient-dirclean:
-	rm -rf $(GDB_CLIENT_DIR)
+gdbhost-dirclean:
+	rm -rf $(GDB_HOST_DIR)
 
 
 
@@ -216,6 +216,6 @@
 TARGETS+=gdbserver
 endif
 
-ifeq ($(strip $(BR2_PACKAGE_GDB_CLIENT)),y)
-TARGETS+=gdbclient
+ifeq ($(strip $(BR2_PACKAGE_GDB_HOST)),y)
+TARGETS+=gdbhost
 endif




More information about the uClibc-cvs mailing list