News:

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

Main Menu

gdb and shared object

Started by gmclachl, July 08, 2008, 10:36:35 PM

Previous topic - Next topic

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

#1
*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