Hi Marc
sorry for the late reply.
I've created a simple project, with an empty form and only the default code inside the unit.
The problem is still the same so I've pasted the entire message in the debugger window. I hope this can help.
<-gdb-set env PWD=/home/vitfer>
^done
(gdb)
<-gdb-set env QTDIR=/usr/lib/qt>
^done
(gdb)
<-gdb-set env SHELL=>
~"Setting environment variable \"SHELL\" to null value.\n"
^done
(gdb)
<-gdb-set env SHLVL=1>
^done
(gdb)
<-gdb-set env T1LIB_CONFIG=/usr/share/t1lib/t1lib.config>
^done
(gdb)
<-gdb-set env TERM=dumb>
^done
(gdb)
<-gdb-set env USER=vitfer>
^done
(gdb)
<-gdb-set env WINDOW_MANAGER=metacity>
^done
(gdb)
<-file-exec-and-symbols "/home/vitfer/test/project1">
~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
^done
(gdb)
<-environment-cd "/home/vitfer/test/">
^done
(gdb)
<-data-evaluate-expression FPC_THREADVAR_RELOCATE_PROC>
&"No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context.\n"
^error,msg="No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context."
(gdb)
<info functions FPC_CPUINIT>
&"info functions FPC_CPUINIT\n"
~"All functions matching regular expression \"FPC_CPUINIT\":\n"
~"\n"
~"Non-debugging symbols:\n"
~"0x0805368c SYSTEM_FPC_CPUINIT\n"
^done
(gdb)
<-gdb-set language pascal>
^done
(gdb)
<-break-insert -t main>
^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x080535b0",func="main",file="project1.lpr",line="11",times="0"}
(gdb)
<-break-insert FPC_RAISEEXCEPTION>
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0805ce72",at="<fpc_raiseexception+6>",times="0"}
(gdb)
<-break-insert FPC_BREAK_ERROR>
^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x0805f4c2",at="<SYSTEM_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER+6>",times="0"}
(gdb)
<-break-insert FPC_RUNERROR>
^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x0805f592",at="<SYSTEM_RUNERROR$WORD+6>",times="0"}
(gdb)
<info file>
&"info file\n"
~"Symbols from \"/home/vitfer/test/project1\".\n"
~"Local exec file:\n"
~"\t`/home/vitfer/test/project1', file type elf32-i386.\n"
~"\tEntry point: 0x8053490\n"
~"\t0x080480f4 - 0x08048107 is .interp\n"
~"\t0x08048108 - 0x08049368 is .hash\n"
~"\t0x08049368 - 0x0804bc38 is .dynsym\n"
~"\t0x0804bc38 - 0x0804f318 is .dynstr\n"
~"\t0x0804f318 - 0x0804f832 is .gnu.version\n"
~"\t0x0804f834 - 0x0804f884 is .gnu.version_r\n"
~"\t0x0804f884 - 0x0804f8c4 is .rel.dyn\n"
~"\t0x0804f8c4 - 0x08050ca4 is .rel.plt\n"
~"\t0x08050ca4 - 0x08050cbe is .init\n"
~"\t0x08050cc0 - 0x08053490 is .plt\n"
~"\t0x08053490 - 0x081a8700 is .text\n"
~"\t0x081a8700 - 0x081a871e is .fini\n"
~"\t0x081a8720 - 0x081a8724 is .eh_frame\n"
~"\t0x081a9000 - 0x081a9008 is .ctors\n"
~"\t0x081a9008 - 0x081a9010 is .dtors\n"
~"\t0x081a9010 - 0x081a9014 is .jcr\n"
~"\t0x081a9014 - 0x081a9124 is .dynamic\n"
~"\t0x081a9124 - 0x081a9128 is .got\n"
~"\t0x081a9128 - 0x081a9b24 is .got.plt\n"
~"\t0x081a9b24 - 0x0823d850 is .data\n"
~"\t0x0823d850 - 0x08253e48 is .bss\n"
^done
(gdb)
<-exec-run>
^running
(gdb)
&"Cannot exec : No such file or directory.\n"
&"You can't do that without a process to debug.\n"
^error,msg="You can't do that without a process to debug."
(gdb)
<info program>
&"info program\n"
~"The program being debugged is not being run.\n"
^done,reason="exited",exit-code="0177"
(gdb)
What do you think about the message
"No symbol \"FPC_THREADVAR_RELOCATE_PROC\" in current context.\n" ?
Thank you very much for your help