Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - using gdb on network shared library: (1 Item)
   
using gdb on network shared library  
I need to run gdb on a my shared library loaded by mount.  I normally would start my driver like so:

mount -v -T io-pkt devnp-canpro_g.so -o baud=1000,port=0,board_index=0,verbose

but if I start gdb like this:
gdb --x ./gdbopts --args mount -vvv-T io-pkt devnp-canpro_g.so -o baud=1000,port=0,board_index=0,verbose

where gdbopts contains:
set solib-search-path /lib/dll
set auto-solib-add 1

And I set a breakpoint on my _attach etc entry point it never gets called before mount exits and the program ends 
normally.

Any tips on how to debug my devnp-canpro_g.so?

I have been able to get it to load and debug using this:
gdb --x ./gdbopts --args io-pkt-v4 -v -dcanpro_g baud=1000,port=0,board_index=0,verbose

but a bug I am seeing does not show up with this method of starting.

Thanks

Allan