Kein ausführen des Programms trotz problemlosem Kompilieren.

Für Fragen rund um die Ide und zum Debugger
Antworten
alexander
Beiträge: 423
Registriert: Di 5. Feb 2008, 12:45
OS, Lazarus, FPC: Linux, Lazarus svn, FPC svn
CPU-Target: 64Bit
Kontaktdaten:

Kein ausführen des Programms trotz problemlosem Kompilieren.

Beitrag von alexander »

Hi,


also wenn ich das Programm kompilieren, tut er dass und zeigt, dann in der Titelleiste von Lazazrus an das er debuggt. Doch das Programm erscheint nicht.
Das ist immer so, es sei denn bevor ich etwas anderes kompiliert habe, erstelle ich ein neues Project. Dieses neues Projekt klappt dann problemlos....

Es ist echt seltam....

die konsolensuasgabe von Lazarus beim kompilieren und "ausführen" ist:
Compiling hello_world.lpr
Linking hello_world
19 lines compiled, 2.3 sec
1 warning(s) issued
2 hint(s) issued
[TCompiler.Compile] end
[TDebugManager.DoInitDebugger] A
[TCmdLineDebugger] Debug PID: 13072
[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] "/home/alexander/Desktop/hello_world/hello_world"
[WARNING] Debugger: File '/home/alexander/Desktop/hello_world/hello_world' has no debug symbols
[TDebugManager.DoInitDebugger] END
[TMainIDE.DoRunProject] B TGDBMIDebugger
TDebugManager.RunDebugger A True Destroying=False
TDebugManager.RunDebugger B TGDBMIDebugger
TGDBMIDebugger.StartDebugging WorkingDir="/home/alexander/Desktop/hello_world/"
[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] Log output: &"info functions FPC_CPUINIT\n"
[Debugger] Log output: &"info functions $$_RUNERROR$\n"
[Debugger] Log output: &"info address main\n"
[Debugger] Log output: &"No symbol \"main\" in current context.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="No symbol \"main\" in current context."
[Debugger] Log output: &"Function \"main\" not defined.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function \"main\" not defined."
[Debugger] Log output: &"Function \"FPC_RAISEEXCEPTION\" not defined.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function \"FPC_RAISEEXCEPTION\" not defined."
[Debugger] Log output: &"Function \"FPC_BREAK_ERROR\" not defined.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function \"FPC_BREAK_ERROR\" not defined."
[Debugger] Log output: &"Function \"FPC_RUNERROR\" not defined.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="Function \"FPC_RUNERROR\" not defined."
[Debugger] Log output: &"info file\n"
[Debugger] File type: elf64-x86-64
[Debugger] Entry point: 0x4816e0\t0x00000000004001c8 - 0x00000000004001e4 is .interp
[Debugger] Console output: ~"(no debugging symbols found)\n"
[Debugger] Console output: ~"(no debugging symbols found)\n"
[Debugger] Log output: &"Warning:\n"
[Debugger] Log output: &"Cannot insert breakpoint 1.\n"
[Debugger] Log output: &"Error accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"\n"
[WARNING] Debugger: unexpected result-record: ^error,msg="Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"info program\n"
[Debugger] Target PID: 13073
[Debugger] Log output: &"Warning:\n"
[Debugger] Log output: &"Cannot insert breakpoint 1.\n"
[Debugger] Log output: &"Error accessing memory address 0x0: Input/output error.\n"
[Debugger] Log output: &"\n"
[WARNING] Debugger: unexpected result-record: ^error,msg="Warning:\nCannot insert breakpoint 1.\nError accessing memory address 0x0: Input/output error.\n"
[TMainIDE.DoRunProject] END
Ich habe auch schon oft versucht die Version zu updaten und wieder alles neu kompilieren lassen. Doch das problem bleibt.

Ich benutze Ubuntu 8.04 64bit Lazarus aus dem svn (neuste revision)

Gruß Alexander


PS: ich bin gerade dabei es komplett zu löschen und neu zu kompilieren.... vielleicht lag es ja an den einstellungen.... grr....
Du magst Freiheit? Gönne es auch deinem Computer mit Linux!
www.alexanderroth.eu

alexander
Beiträge: 423
Registriert: Di 5. Feb 2008, 12:45
OS, Lazarus, FPC: Linux, Lazarus svn, FPC svn
CPU-Target: 64Bit
Kontaktdaten:

Beitrag von alexander »

ahhh jetzt klappts.... keine Ahnung woran es gelegen hat...
jetzt kann ich alles nochmal neu einstellen.....

AHA jetzt weiß ich was es war. DER GDB. Denn sobald ichg den eingestellt hatte war der fehler wieder da!

Was ist das denn für ein seltsamer bug?
Du magst Freiheit? Gönne es auch deinem Computer mit Linux!
www.alexanderroth.eu

Antworten