News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Running debugger runs the output file, not the debugger (AGC)

Started by NeilFraser, April 22, 2024, 03:32:36 AM

Previous topic - Next topic

NeilFraser

Hello, I'm trying to use Code::Blocks to debug code for the Apollo Guidance Computer.  Compiling works great, it generates a valid binary output file.  But when I try to run the debugger, Code::Blocks forgets to include the specified debugger executable.

The build log states:

-------- Run: Debug in Comanche051 (compiler: AGC YaYUL assembler)----------
Checking for existence: /home/pi/virtualagc/Comanche051/Comanche051.bin
Executing: /home/pi/virtualagc/Comanche051/Comanche051.bin (in /home/pi/virtualagc/Comanche051/.)
Process terminated with status -1 (0 minute(s), 0 second(s))


I believe the problem is that it's forgetting about the debugger; it should be executing:
/home/pi/VirtualAGC/bin/yaAGC /home/pi/virtualagc/Comanche051/Comanche051.bin

Under "Settings", "Debugger...", "AGC" (my GDB/CDB debugger profile), the executable path is set to /home/pi/VirtualAGC/bin/yaAGC, but this info doesn't seem to be making it to the command being executed.

Under "Settings", "Compiler...", "Global compiler settings", "Toolchain executables", the debugger is set to "GDB/CDB debugger: AGC".

Any idea what I should be doing differently?  Thanks!

Grit Clef

Have you run debugger from Debug->Start? You seem to directly run the executable!
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

NeilFraser

QuoteHave you run debugger from Debug->Start? You seem to directly run the executable!

Well.  I guess that's what I get for trying to solve this problem at 3 am...   :o

Thanks!