projects
/
openwrt
/
staging
/
thess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a22a37
)
script/remote-gdb: enable and keep command history
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 18 Sep 2014 09:29:44 +0000
(09:29 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 18 Sep 2014 09:29:44 +0000
(09:29 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 42609
scripts/remote-gdb
patch
|
blob
|
history
diff --git
a/scripts/remote-gdb
b/scripts/remote-gdb
index 380a22511b6fe1a37b42f6bfeb7381c66f6847e2..98ec768f4bdc4a55d19818622556a47dbf755902 100755
(executable)
--- 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);