Author Topic: Using GDB with makefile compilation  (Read 5594 times)

Stef_D

  • Guest
Using GDB with makefile compilation
« on: August 04, 2006, 11:11:23 pm »
I've set up my project to use a makefile for compilation.
My makefile use -g option for gcc debug.
But for some reasons it doesn't work i start debug and it doesn't stop on my breakpoint...
Is there a way to have GDB working with makefile project compilation ?
« Last Edit: August 04, 2006, 11:13:01 pm by Stef_D »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Using GDB with makefile compilation
« Reply #1 on: August 04, 2006, 11:21:20 pm »
Enable the debugger's *debug* log (in "Settings->Compiler and debugger->Debugger") and post its contents...
Be patient!
This bug will be fixed soon...

Stef_D

  • Guest
Re: Using GDB with makefile compilation
« Reply #2 on: August 05, 2006, 12:15:22 am »
As i'm using a makefile, anyway these options are not used...
And i don't see any debugger's log option, just symbol (-g) which is already here in the makefile.
Compilation Log show :
gcc -g ...

still doesn't work, program execute as no breakpoint present, even if there are here...

Edit : i found the debugger log option (in the plugins setting -> GDB).
log window just stay empty :-/

Edit2 : hmmm... sorry i just found the problem, it was a very stupid thing :oops:
Actually i was using the run button, as i do a lot of delphi development i though it was the debug button ;)

Thanks for your help anyway :)
« Last Edit: August 06, 2006, 01:06:44 pm by Stef_D »

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Using GDB with makefile compilation
« Reply #3 on: August 05, 2006, 05:28:33 am »
Edit Edit : hmmm... sorry i just found the problem, it's was a very stupid thing  :oops:
Thanks for your help anyway :)

Mind filling us in on the solution, just for future reference.