1767188 Members
3326 Online
108959 Solutions
New Discussion юеВ

GDB error

 
S. Karunanidhi
Occasional Advisor

GDB error

Hi all!
I am facing a problem in gdb (The GNU debugger) in my HP9000 C3000 machine with HPUX ver 11.0. Whenever I invoke gdb with the object file, it gives this error

Warning :unable to find _d_pid symbol in object file.
Warning: suggest linking with /opt/langtools/libend.o
Warning : GDB wll be unable to track shl_load/sh_unload calls

For some of the object files the gdb hangs if you type run in gdb prompt (I have to kill this process for comming out of gdb)

These things are happening only for the object files which involve shared libraries. If I write a very small and simple C program and try to debug it, it works fine.

Can you help in solving this problem?

The details:
Machine: HP9000 C3000
OS: HPUX ver 11.0 with latest patch bundle(Mar 2000)
Applications Installed: 1.HP C/Ansi C Developers toolkit with debuggers
2.HPC++
3.Oralce 8
4.Informix
5.GDB ver 4.16

Thanks in advance
S.Karunanidhi,
Wipro Ltd.,Bangalore,India
Karunanidhi.S
2 REPLIES 2
Handy Arry
Occasional Advisor

Re: GDB error

Have you tried linking in end.o? This is the element that is included when option '-g' is used.

I believe that:
In 32-bit, gdb needs a notification of shared library loading that has a dependency on
end.o being linked in; in 64-bit, there is no dependency.

I believe that the usage of shared libraries has improved on the later version of GDB.

Have you considered the latest HPUX debugger, WDB, which is based on the latest GDB.
See URL for download:
http://www.hp.com/esy/lang/tools/Debuggers/index.html
See URL for documentation you should read:
http://www.hp.com/esy/lang/tools/Debuggers/WDB/index.html

Hope this helps.
skarunanidhi
Occasional Contributor

Re: GDB error

Hi Andy!
Thanks for the reply. I had tried linking in end.o file,but problem still exists.

I had downloaded HP WDB ver 2.0.01 (Based on GDB ver 4.17) and installed on the machine. But still I am having the same problem. Both GDB and DDE hangs immediately after typing "run" in their respective prompts.

Any other solution can you think of?

Regards,.
S.Karunanidhi,
Wipro,India
Karunanidhi.S