Skip to contentSkip to conversation

gdb: depend on host-expat to fix remote debugging

PATCH New Bjørn Forsman 2 participants 3 messages Feb 24, 2011 – Feb 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdb: depend on host-expat to fix remote debugging

This patch fixes the following error when using GDB with gdbserver:

warning: Can not parse XML target description; XML support was disabled at compile time Remote 'g' packet reply is too long: <very long line of hex chars> [remote debugging does not work]

Use $(HOST_CONFIGURE_OPTS) so expat is found.

---
 toolchain/gdb/gdb.mk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
toolchain/gdb/gdb.mk +2 -1
index 739ebbe..caf3e36 100644
@@ -183,6 +183,7 @@ $(GDB_HOST_DIR)/.configured: $(GDB_DIR)/.unpacked
 	(cd $(GDB_HOST_DIR); \
 		gdb_cv_func_sigsetjmp=yes \
 		bash_cv_have_mbstate_t=yes \
+		$(HOST_CONFIGURE_OPTS) \
 		$(GDB_DIR)/configure $(QUIET) \
 		--cache-file=/dev/null \
 		--prefix=$(STAGING_DIR) \
@@ -207,7 +208,7 @@ $(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb
 	ln -snf $(REAL_GNU_TARGET_NAME)-gdb \
 		$(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
 
-gdbhost: $(TARGET_CROSS)gdb
+gdbhost: host-expat $(TARGET_CROSS)gdb
 
 gdbhost-source: $(DL_DIR)/$(GDB_SOURCE)
 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 gdb: depend on host-expat to fix remote debugging

2011/2/24 Bj?rn Forsman <[email protected]>:

Quoted 6 lines

This patch fixes the following error when using GDB with gdbserver:

?warning: Can not parse XML target description; XML support was disabled at compile time ?Remote 'g' packet reply is too long: <very long line of hex chars> ?[remote debugging does not work]

Quoted 6 lines

Use $(HOST_CONFIGURE_OPTS) so expat is found.

---
?toolchain/gdb/gdb.mk | ? ?3 ++-
?1 files changed, 2 insertions(+), 1 deletions(-)

Ping.

Please consider including this bug fix in the upcoming release.

Best regards,
Bj?rn Forsman

#2 lore raw

PATCH 1/1 gdb: depend on host-expat to fix remote debugging

In reply to Bjørn Forsman
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bj?rn" == Bj?rn Forsman <[email protected]> writes:

Bj?rn> This patch fixes the following error when using GDB with gdbserver:

 Bj?rn>   warning: Can not parse XML target description; XML support was disabled at compile time
 Bj?rn>   Remote 'g' packet reply is too long: <very long line of hex chars>
 Bj?rn>   [remote debugging does not work]

Bj?rn> Use $(HOST_CONFIGURE_OPTS) so expat is found.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard