[OpenWrt-Devel] [PATCH] [RESEND] scripts: use extended-remote for greater compatibility

Karl Palsson karlp at tweak.net.au
Wed Dec 10 06:56:16 EST 2014


From: Karl Palsson <karlp at remake.is>

Plain "remote" results in failure to connect using the gdb built with
the toolchain. (On atheros target at least)  extended-remote also allows
"run" to restart the target process.

Signed-off-by: Karl Palsson <karlp at remake.is>
---

Resend for new patchwork instance.

 scripts/remote-gdb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 380a225..2c08f14 100755
--- a/scripts/remote-gdb
+++ b/scripts/remote-gdb
@@ -61,7 +61,7 @@ if( opendir SD, "$Bin/../staging_dir" )
 		my ($sysroot) = glob("$Bin/../staging_dir/target-${arch}_${libc}/root-*/");
 
 		print $fh "set sysroot $sysroot\n" if $sysroot;
-		my $cmd = "target remote";
+		my $cmd = "target extended-remote";
 		-f $ARGV[0] and $cmd = "core-file";
 		print $fh "$cmd $ARGV[0]\n";
 
-- 
1.8.3.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list