mcs814x: set low_mem feature flag
[oweals/openwrt.git] / scripts / remote-gdb
index 380a22511b6fe1a37b42f6bfeb7381c66f6847e2..ce96dd2c436ce29d2e4ac818384a5e31658a0c9b 100755 (executable)
@@ -61,10 +61,15 @@ 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";
 
+               # 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);