summaryrefslogtreecommitdiff
path: root/scripts/remote-gdb
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
commit24900071426ad1f3e835c7ec2de212dd4a304606 (patch)
treebd71c0a6bc4f33e2488e3ced6d2d39ed219e9759 /scripts/remote-gdb
parent3a22a37f1a923a0e64416a624ae1cb1e1ee627e9 (diff)
downloadmtk-20170518-24900071426ad1f3e835c7ec2de212dd4a304606.zip
mtk-20170518-24900071426ad1f3e835c7ec2de212dd4a304606.tar.gz
mtk-20170518-24900071426ad1f3e835c7ec2de212dd4a304606.tar.bz2
script/remote-gdb: enable and keep command history
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 42609
Diffstat (limited to 'scripts/remote-gdb')
-rwxr-xr-xscripts/remote-gdb5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 380a225..98ec768 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);