mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
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.
This commit is contained in:
parent
afd4b07278
commit
768304767b
@ -14,16 +14,16 @@ config BR2_PACKAGE_GDB_SERVER
|
|||||||
Build the gdbserver stub to run on the target.
|
Build the gdbserver stub to run on the target.
|
||||||
A full gdb is needed to debug the progam.
|
A full gdb is needed to debug the progam.
|
||||||
|
|
||||||
config BR2_PACKAGE_GDB_CLIENT
|
config BR2_PACKAGE_GDB_HOST
|
||||||
bool "Build gdb client for the Host"
|
bool "Build gdb for the Host"
|
||||||
default n
|
default n
|
||||||
help
|
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
|
choice
|
||||||
prompt "GDB debugger Version"
|
prompt "GDB debugger Version"
|
||||||
default BR2_GDB_VERSION_6_3
|
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
|
help
|
||||||
Select the version of gdb you wish to use.
|
Select the version of gdb you wish to use.
|
||||||
|
|
||||||
|
@ -159,15 +159,15 @@ gdbserver-dirclean:
|
|||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
# 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
|
$(GDB_HOST_DIR)/.configured: $(GDB_DIR)/.unpacked
|
||||||
mkdir -p $(GDB_CLIENT_DIR)
|
mkdir -p $(GDB_HOST_DIR)
|
||||||
(cd $(GDB_CLIENT_DIR); \
|
(cd $(GDB_HOST_DIR); \
|
||||||
gdb_cv_func_sigsetjmp=yes \
|
gdb_cv_func_sigsetjmp=yes \
|
||||||
$(GDB_DIR)/configure \
|
$(GDB_DIR)/configure \
|
||||||
--prefix=$(STAGING_DIR) \
|
--prefix=$(STAGING_DIR) \
|
||||||
@ -180,26 +180,26 @@ $(GDB_CLIENT_DIR)/.configured: $(GDB_DIR)/.unpacked
|
|||||||
--without-included-gettext \
|
--without-included-gettext \
|
||||||
--enable-threads \
|
--enable-threads \
|
||||||
);
|
);
|
||||||
touch $(GDB_CLIENT_DIR)/.configured
|
touch $(GDB_HOST_DIR)/.configured
|
||||||
|
|
||||||
$(GDB_CLIENT_DIR)/gdb/gdb: $(GDB_CLIENT_DIR)/.configured
|
$(GDB_HOST_DIR)/gdb/gdb: $(GDB_HOST_DIR)/.configured
|
||||||
$(MAKE) -C $(GDB_CLIENT_DIR)
|
$(MAKE) -C $(GDB_HOST_DIR)
|
||||||
strip $(GDB_CLIENT_DIR)/gdb/gdb
|
strip $(GDB_HOST_DIR)/gdb/gdb
|
||||||
|
|
||||||
$(TARGET_CROSS)gdb: $(GDB_CLIENT_DIR)/gdb/gdb
|
$(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb
|
||||||
install -c $(GDB_CLIENT_DIR)/gdb/gdb $(TARGET_CROSS)gdb
|
install -c $(GDB_HOST_DIR)/gdb/gdb $(TARGET_CROSS)gdb
|
||||||
ln -snf ../../bin/$(REAL_GNU_TARGET_NAME)-gdb \
|
ln -snf ../../bin/$(REAL_GNU_TARGET_NAME)-gdb \
|
||||||
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/gdb
|
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/gdb
|
||||||
ln -snf $(REAL_GNU_TARGET_NAME)-gdb \
|
ln -snf $(REAL_GNU_TARGET_NAME)-gdb \
|
||||||
$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-gdb
|
$(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-gdb
|
||||||
|
|
||||||
gdbclient: $(TARGET_CROSS)gdb
|
gdbhost: $(TARGET_CROSS)gdb
|
||||||
|
|
||||||
gdbclient-clean:
|
gdbhost-clean:
|
||||||
$(MAKE) -C $(GDB_CLIENT_DIR) clean
|
$(MAKE) -C $(GDB_HOST_DIR) clean
|
||||||
|
|
||||||
gdbclient-dirclean:
|
gdbhost-dirclean:
|
||||||
rm -rf $(GDB_CLIENT_DIR)
|
rm -rf $(GDB_HOST_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -216,6 +216,6 @@ ifeq ($(strip $(BR2_PACKAGE_GDB_SERVER)),y)
|
|||||||
TARGETS+=gdbserver
|
TARGETS+=gdbserver
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(BR2_PACKAGE_GDB_CLIENT)),y)
|
ifeq ($(strip $(BR2_PACKAGE_GDB_HOST)),y)
|
||||||
TARGETS+=gdbclient
|
TARGETS+=gdbhost
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user