mirror of https://github.com/hak5/openwrt.git
script/remote-gdb: enable and keep command history
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 42609lede-17.01
parent
3a22a37f1a
commit
2490007142
|
@ -65,6 +65,11 @@ if( opendir SD, "$Bin/../staging_dir" )
|
||||||
-f $ARGV[0] and $cmd = "core-file";
|
-f $ARGV[0] and $cmd = "core-file";
|
||||||
print $fh "$cmd $ARGV[0]\n";
|
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];
|
my $file = -f "$sysroot/$ARGV[1]" ? "$sysroot/$ARGV[1]" : $ARGV[1];
|
||||||
system($gdb, '-x', $fp, $file);
|
system($gdb, '-x', $fp, $file);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue