aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remote-gdb
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-12-10 15:50:52 +0000
committerJohn Crispin <john@openwrt.org>2014-12-10 15:50:52 +0000
commitc399f986899e9fc311c4c6a3870fc16770941a1c (patch)
treecb21fc5eb48ead5ffff8e4182189e7cb518c845f /scripts/remote-gdb
parenta8d0b4153090e64c8a0222b6afe265edae039da8 (diff)
downloadupstream-c399f986899e9fc311c4c6a3870fc16770941a1c.tar.gz
upstream-c399f986899e9fc311c4c6a3870fc16770941a1c.tar.bz2
upstream-c399f986899e9fc311c4c6a3870fc16770941a1c.zip
scripts: use extended-remote for greater compatibility
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@remake.is> SVN-Revision: 43596
Diffstat (limited to 'scripts/remote-gdb')
-rwxr-xr-xscripts/remote-gdb2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 98ec768f4b..ce96dd2c43 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";