Lazarus crashes on debuging Hello world lazarus / 12-Debugger ---------------------------------------------------------------------- Vakaras · 2008-05-12 19:37 I have a simple program (Hello world in my national language): program sveikas_pasauli; var    vardas : string[20];    masyvas : array [1..10, 1..10] of integer;   begin      writeln('Įveskite savo vardą');      readln(vardas);      writeln('Labas, ', vardas, ', ačiū, kad naudojies „Lazarus“');      readln(vardas); end. when debuger is set to "(none)" it works perfect, but when I set debugger to gdb and try to run my program Lazarus crashes. Here is output: ./lazarus TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: miscellaneous options file not found - using defaults Pastaba: nerastas CodeTools nustatymų failas - naudojami numatytieji nustatymai. NOTE: help options config file not found - using defaults GetAdjustment 08B7BE88=LCLWinapiWidget [FPr] LCLObject=B738CCE0=SynEdit1:TSynEdit GetAdjustment 08B7E448=LCLWinapiWidget [FStPr] LCLObject=B7385570=MessageTreeView:TTreeView [TMainIDE.DoRunProject] A TMainIDE.DoInitProjectRun A True 0 TMainIDE.DoInitProjectRun B TMainIDE.DoSaveAll TCompiler.Compile WorkingDir="/media/data/baltix- mokyklai/lazarus_lokalizacija/Paskalio_programa/" CompilerFilename="/usr/bin/ppc386" CompilerParams=" -S2cgi -OG1 -gl -vewnhi -l -Fu. -osveikas_pasauli sveikas_pasauli.lpr" [TCompiler.Compile] CmdLine="/usr/bin/ppc386  -S2cgi -OG1 -gl -vewnhi -l -Fu. -osveikas_pasauli sveikas_pasauli.lpr" Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Warning: You are using the obsolete switch -OG Free Pascal Compiler version 2.2.0 [2008/04/01] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Linux for i386 Compiling sveikas_pasauli.lpr sveikas_pasauli.lpr(5,4) Note: Local variable "masyvas" not used Linking sveikas_pasauli 14 lines compiled, 0.4 sec 1 warning(s) issued 2 hint(s) issued 1 note(s) issued [TCompiler.Compile] end [TDebugManager.DoInitDebugger] A [TCmdLineDebugger] Debug PID: 13982 [Debugger] Log output: &"No symbol table is loaded.  Use the \"file\" command.\n" TGDBMIDebugger.ProcessResult Error: ,msg="No symbol table is loaded.  Use the \"file\" command." [Debugger] Running GDB version: C [TDebugger.SetFileName] "/media/data/baltix- mokyklai/lazarus_lokalizacija/Paskalio_programa/sveikas_pasauli" [TDebugManager.DoInitDebugger] END [TMainIDE.DoRunProject] B TGDBMIDebugger TDebugManager.RunDebugger A True Destroying=False TDebugManager.RunDebugger B TGDBMIDebugger TGDBMIDebugger.StartDebugging WorkingDir="/media/data/baltix- mokyklai/lazarus_lokalizacija/Paskalio_programa/" [Debugger] Log output: &"No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context.\n" TGDBMIDebugger.ProcessResult Error: ,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context." [Debugger] Log output: &"info functions FPC_CPUINIT\n" [Debugger] Log output: &"info address main\n" [Debugger] Log output: &"info file\n" [Debugger] File type: elf32-i386 [Debugger] Entry point: 0x80603a0\t0x08048080 - 0x08060400 is .text [WARNING] Debugger: Unknown stopped reason: [Debugger] Log output: &"info program\n" [Debugger] Target PID: 13983 when I tryed to run Lazarus compiled program alone it worked, but in gdb I get error: $ gdb sveikas_pasauli GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) (gdb) list 1       program sveikas_pasauli; 2 3       var 4          vardas : string[20]; 5          masyvas : array [1..10, 1..10] of integer; 6         7       begin 8            writeln('Įveskite savo vardą'); 9            readln(vardas); 10           writeln('Labas, ', vardas, ', ačiū, kad naudojies „Lazarus“'); (gdb) break 11 Breakpoint 1 at 0x8048141: file sveikas_pasauli.lpr, line 11. (gdb) run Starting program: /media/data/baltix- mokyklai/lazarus_lokalizacija/Paskalio_programa/sveikas_pasauli Įveskite savo vardą čę„iįė Labas, čę„iįė, ačiū, kad naudojies „Lazarus“ Breakpoint 1, main () at sveikas_pasauli.lpr:11 11           readln(vardas); (gdb) print vardas No symbol "vardas" in current context. (gdb) my program I can debug normaly just when I rename it from sveikas_pasauli.lpr to sveikas_pasauli.pas and compile with fpc -g sveikas_pasauli.pas I tryed on both Lazarus versions 0.9.24 (from Ubuntu repository) and 0.9.25 (from svn). P.S. OS: ubuntu hardy ---------------------------------------------------------------------- Marc · 2008-05-16 12:05 yes debugging of console applications in Lazarus is not supported (yet ?)