Browse Source

* fixes for linux GDB tty command (merged)

pierre 25 years ago
parent
commit
e16fccc9d4
3 changed files with 35 additions and 8 deletions
  1. 15 4
      ide/text/fpdebug.pas
  2. 12 1
      ide/text/fpini.pas
  3. 8 3
      ide/text/fpstre.inc

+ 15 - 4
ide/text/fpdebug.pas

@@ -600,9 +600,13 @@ begin
 {$endif win32}
 {$endif win32}
 {$ifdef linux}
 {$ifdef linux}
   { Run the debuggee in another tty }
   { Run the debuggee in another tty }
-  Command('set tty '+DebuggeeTTY);
-  NoSwitch:=DebuggeeTTY<>'';
-{$endif win32}
+  if DebuggeeTTY <> '' then
+    begin
+      Command('tty '+DebuggeeTTY);
+      NoSwitch:= true;
+    end
+  else NoSwitch := false;
+{$endif linux}
   { Switch to user screen to get correct handles }
   { Switch to user screen to get correct handles }
   UserScreen;
   UserScreen;
   inherited Run;
   inherited Run;
@@ -896,7 +900,11 @@ begin
   Inc(RunCount);
   Inc(RunCount);
   if NoSwitch then
   if NoSwitch then
     begin
     begin
+{$ifdef linux}
+      PushStatus(msg_runninginanotherwindow+DebuggeeTTY);
+{$else not linux}
       PushStatus(msg_runninginanotherwindow);
       PushStatus(msg_runninginanotherwindow);
+{$endif linux}
     end
     end
   else
   else
     begin
     begin
@@ -3346,7 +3354,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-08-22 09:41:39  pierre
+  Revision 1.3  2000-10-06 22:58:59  pierre
+   * fixes for linux GDB tty command (merged)
+
+  Revision 1.2  2000/08/22 09:41:39  pierre
    * first big merge from fixes branch
    * first big merge from fixes branch
 
 
   Revision 1.1.2.1  2000/07/18 05:50:22  michael
   Revision 1.1.2.1  2000/07/18 05:50:22  michael

+ 12 - 1
ide/text/fpini.pas

@@ -1,5 +1,9 @@
 {
 {
+<<<<<<< fpini.pas
     $Id$
     $Id$
+=======
+    $Id$
+>>>>>>> 1.1.2.3
     This file is part of the Free Pascal Integrated Development Environment
     This file is part of the Free Pascal Integrated Development Environment
     Copyright (c) 1998 by Berczi Gabor
     Copyright (c) 1998 by Berczi Gabor
 
 
@@ -56,6 +60,7 @@ const
 (*  ieOpenFile         = 'OpenFile';
 (*  ieOpenFile         = 'OpenFile';
   ieOpenFileCount    = 'OpenFileCount'; *)
   ieOpenFileCount    = 'OpenFileCount'; *)
   ieRunParameters    = 'Parameters';
   ieRunParameters    = 'Parameters';
+  ieDebuggeeRedir    = 'DebugRedirection';
   iePrimaryFile      = 'PrimaryFile';
   iePrimaryFile      = 'PrimaryFile';
   ieCompileMode      = 'CompileMode';
   ieCompileMode      = 'CompileMode';
   iePalette          = 'Palette';
   iePalette          = 'Palette';
@@ -312,6 +317,7 @@ begin
     be overruled with the parameter loading }
     be overruled with the parameter loading }
   SetPrimaryFile(INIFile^.GetEntry(secCompile,iePrimaryFile,PrimaryFile));
   SetPrimaryFile(INIFile^.GetEntry(secCompile,iePrimaryFile,PrimaryFile));
   SetRunParameters(INIFile^.GetEntry(secRun,ieRunParameters,GetRunParameters));
   SetRunParameters(INIFile^.GetEntry(secRun,ieRunParameters,GetRunParameters));
+  DebuggeeTTY := INIFile^.GetEntry(secRun,ieDebuggeeRedir,DebuggeeTTY);
   { Compile }
   { Compile }
   S:=INIFile^.GetEntry(secCompile,ieCompileMode,'');
   S:=INIFile^.GetEntry(secCompile,ieCompileMode,'');
   for ts:=low(TSwitchMode) to high(TSwitchMode) do
   for ts:=low(TSwitchMode) to high(TSwitchMode) do
@@ -489,6 +495,8 @@ begin
 *)
 *)
   { Run }
   { Run }
   INIFile^.SetEntry(secRun,ieRunParameters,GetRunParameters);
   INIFile^.SetEntry(secRun,ieRunParameters,GetRunParameters);
+  If DebuggeeTTY<>'' then
+    INIFile^.SetEntry(secRun,ieDebuggeeRedir,DebuggeeTTY);
   { Compile }
   { Compile }
   INIFile^.SetEntry(secCompile,iePrimaryFile,PrimaryFile);
   INIFile^.SetEntry(secCompile,iePrimaryFile,PrimaryFile);
   INIFile^.SetEntry(secCompile,ieCompileMode,SwitchesModeStr[SwitchesMode]);
   INIFile^.SetEntry(secCompile,ieCompileMode,SwitchesModeStr[SwitchesMode]);
@@ -570,7 +578,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-08-22 09:41:39  pierre
+  Revision 1.3  2000-10-06 22:58:59  pierre
+   * fixes for linux GDB tty command (merged)
+
+  Revision 1.2  2000/08/22 09:41:39  pierre
    * first big merge from fixes branch
    * first big merge from fixes branch
 
 
   Revision 1.1.2.2  2000/08/16 18:46:14  peter
   Revision 1.1.2.2  2000/08/16 18:46:14  peter

+ 8 - 3
ide/text/fpstre.inc

@@ -378,6 +378,7 @@ const
       label_editor_autoclosingbrackets = 'Aut~o~-closing brackets';
       label_editor_autoclosingbrackets = 'Aut~o~-closing brackets';
       label_editor_keeptrailingspaces = '~K~eep trailing spaces';
       label_editor_keeptrailingspaces = '~K~eep trailing spaces';
       label_editor_codecomplete = 'Co~d~eComplete enabled';
       label_editor_codecomplete = 'Co~d~eComplete enabled';
+      label_editor_folds = 'E~n~able folds';
       label_editor_editoroptions = '~E~ditor options';
       label_editor_editoroptions = '~E~ditor options';
       label_editor_tabsize = '~T~ab size';
       label_editor_tabsize = '~T~ab size';
       label_editor_highlightextensions = '~H~ighlight extensions';
       label_editor_highlightextensions = '~H~ighlight extensions';
@@ -479,9 +480,9 @@ const
       label_debugger_debuginfo = 'Debugging information';
       label_debugger_debuginfo = 'Debugging information';
       label_debugger_profileswitches = 'Profiling Switches';
       label_debugger_profileswitches = 'Profiling Switches';
       label_debugger_compilerargs = '~A~dditional compiler args';
       label_debugger_compilerargs = '~A~dditional compiler args';
-      label_debugger_useanotherconsole = 'Use ~A~nother console';
+      label_debugger_useanotherconsole = '~U~se another console';
       label_debugger_redirection = 'Debuggee ~R~edirection';
       label_debugger_redirection = 'Debuggee ~R~edirection';
-      label_debugger_useanothertty = 'Use ~A~nother tty for Debuggee';
+      label_debugger_useanothertty = '~U~se Another tty for Debuggee';
 
 
       dialog_helpfiles = 'Install Help Files';
       dialog_helpfiles = 'Install Help Files';
       label_helpfiles_helpfiles = '~H~elp files';
       label_helpfiles_helpfiles = '~H~elp files';
@@ -558,6 +559,7 @@ const
       msg_errorprocessingfilteredoutput = 'Error processing filtered output.';
       msg_errorprocessingfilteredoutput = 'Error processing filtered output.';
       msg_errorexecutingfilter = 'Error executing filter %s';
       msg_errorexecutingfilter = 'Error executing filter %s';
       msg_errorexecutingtool = 'Error executing tool %s';
       msg_errorexecutingtool = 'Error executing tool %s';
+      msg_errorexecutingshell = 'Error cannot run shell';
       msg_filterexecutionsuccessfulexitcodeis = 'Filter execution successful. Exit code = %d';
       msg_filterexecutionsuccessfulexitcodeis = 'Filter execution successful. Exit code = %d';
       msg_toolexecutionsuccessfulexitcodeis = 'Tool execution successful. Exit code = %d';
       msg_toolexecutionsuccessfulexitcodeis = 'Tool execution successful. Exit code = %d';
 
 
@@ -979,7 +981,10 @@ const
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-08-22 09:41:40  pierre
+  Revision 1.3  2000-10-06 22:58:59  pierre
+   * fixes for linux GDB tty command (merged)
+
+  Revision 1.2  2000/08/22 09:41:40  pierre
    * first big merge from fixes branch
    * first big merge from fixes branch
 
 
   Revision 1.1.2.3  2000/08/16 18:46:14  peter
   Revision 1.1.2.3  2000/08/16 18:46:14  peter