User forums > Using Code::Blocks

gdb and shared object

(1/1)

gmclachl:
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

seb:
*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.

gmclachl:
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

Navigation

[0] Message Index

Go to full version