aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-09-18 09:29:44 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-09-18 09:29:44 +0000
commit10e649119b988aed78a6d6232ae30f990b6b31f1 (patch)
tree8ff7be3943b3c25e4457e4926134d2a9468ba3c5 /scripts
parent665f30a1df9138d5c52703c4b3b9bff9bfa60589 (diff)
downloadupstream-10e649119b988aed78a6d6232ae30f990b6b31f1.tar.gz
upstream-10e649119b988aed78a6d6232ae30f990b6b31f1.tar.bz2
upstream-10e649119b988aed78a6d6232ae30f990b6b31f1.zip
script/remote-gdb: enable and keep command history
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/remote-gdb5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 380a22511b..98ec768f4b 100755
--- a/scripts/remote-gdb
+++ b/scripts/remote-gdb
@@ -65,6 +65,11 @@ if( opendir SD, "$Bin/../staging_dir" )
-f $ARGV[0] and $cmd = "core-file";
print $fh "$cmd $ARGV[0]\n";
+ # History settings
+ print $fh "set history filename $Bin/../tmp/.gdb_history\n";
+ print $fh "set history size 100000000\n";
+ print $fh "set history save on\n";
+
my $file = -f "$sysroot/$ARGV[1]" ? "$sysroot/$ARGV[1]" : $ARGV[1];
system($gdb, '-x', $fp, $file);