Author Topic: gdb and shared object  (Read 2653 times)

Offline gmclachl

  • Single posting newcomer
  • *
  • Posts: 3
gdb and shared object
« 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

seb

  • Guest
Re: gdb and shared object
« Reply #1 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.
« Last Edit: July 09, 2008, 02:13:45 pm by seb »

Offline gmclachl

  • Single posting newcomer
  • *
  • Posts: 3
Re: gdb and shared object
« Reply #2 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