Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: gmclachl on July 08, 2008, 10:36:35 pm

Title: gdb and shared object
Post by: gmclachl on July 08, 2008, 10:36:35 pm
Hi,
     I am using a shared object from Java land, and I wish to debug it. I have compiled it with the -g option. However I cannot seem to get gdb to work from within Code::Blocks.


 In order to debug I go to
  Project > Set Programs Arguments - and select the .so as the host application.

 I then start up the java application and get the pid

 I then do
  Debug > Attach to process

but it never hits any break points.

My enviroment is Ubuntu 8.04
gcc 4.2.3
gdb 6.8

Thanks
George
Title: Re: gdb and shared object
Post by: seb on July 09, 2008, 02:03:35 pm
*bump*

ed.: argh, that hurts. I was dumb enough to forget that I was using a global -s in the gcc compiler options  :?. Don't know if it helps you, gmclachl.
Title: Re: gdb and shared object
Post by: gmclachl on July 09, 2008, 07:33:17 pm
Hey seb,
             I am using a makefile to build the project, so I know for sure I have all the correct flags.

Also I can drop into the command line and attach gdb from there so it seems as if it may be a code::blocks issue.

George