[Lazarus] debugger fails on freebsd x86_64

Marc Santhoff M.Santhoff at web.de
Thu Aug 9 23:02:57 CEST 2012


Hi,

after having moved from a 32 bit machine to a 64 bit one I'm
experiencing a problem. I cannot start any program. I think it had been
working a while ago, but now any time a program in lazarus is started a
dialog pops up saying:

"Debugger error

Ooops, the debugger entered the error state
Save your work now !

Hit Stop, and hope the best, we're pulling the plug."

When run from an xterm there is this log:

[TCompiler.Compile] end
TMainIDE.DoInitProjectRun ProgramFilename=/home/marc/program/Test_lazarus/LazThreads/ThrdDemo
[TCmdLineDebugger] Debug PID: 4090
[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: 6.1.1 [FreeBSD]
[TDebugger.SetFileName] "/home/marc/program/Test_lazarus/LazThreads/ThrdDemo"
[TMainIDE.DoRunProject] B TGDBMIDebugger
[TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="/home/marc/program/Test_lazarus/LazThreads/"
[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: &"set width 50000\n"
[Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"ptype TObject\n"
[Debugger] Log output: &"ptype Exception\n"
[Debugger] Log output: &"ptype Shortstring\n"
[Debugger] Log output: &"ptype pointer\n"
[Debugger] Log output: &"ptype byte\n"
[Debugger] Log output: &"info address FPC_RAISEEXCEPTION\n"
[Debugger] Log output: &"info address FPC_BREAK_ERROR\n"
[Debugger] Log output: &"info address FPC_RUNERROR\n"
[Debugger] Log output: &"info file\n"
[Debugger] File type: elf64-x86-64-freebsd
[Debugger] Entry point: $447040
[WARNING] [Debugger.TargetInfo] Unknown FileType: elf64-x86-64-freebsd, using GDB cpu
[WARNING] [Debugger] Unknown target CPU: amd64
[Debugger] Log output: &"mi_cmd_break_insert: Unknown option ``f''\n"
TGDBMIDebugger.ProcessResult Error: ,msg="mi_cmd_break_insert: Unknown option ``f''"
[Debugger] Console output: ~"[New LWP 100105]\n"
[Debugger] Console output: ~"[New Thread 808007400 (LWP 100105/ThrdDemo)]\n"
[Debugger] Console output: ~"[Switching to Thread 808007400 (LWP 100105/ThrdDemo)]\n"
[Debugger] Console output: ~"Warning: the current language does not match this frame.\n"
[Debugger] Log output: &"info program\n"
[Debugger] Log output: &"info pid\n"
[Debugger] Log output: &"Undefined info command: \"pid\".  Try \"help info\".\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Undefined info command: \"pid\".  Try \"help info\"."
[Debugger] Log output: &"info threads\n"
TDebugger.ReqCmd failed: Run

So the debugger doesn't know the target? To me the target name string
look strange, but I may be wrong.

This is done using this versions:

FreeBSD 9.0-STABLE amd64

$ fpc -iV
2.6.0

Lazarus Version #: 0.9.30.4
Date: 2012-07-05
SVN Revision: 35971
x86_64-freebsd-gtk 2

What's wrong here? How can I fix it?

TIA,
Marc

-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list