1830124 Members
25989 Online
109998 Solutions
New Discussion

gdb and other tools ?

 
SOLVED
Go to solution
Shivkumar
Super Advisor

gdb and other tools ?

Hi,

I am aware of a debugging tool like "gdb" on HPUX to debug applications such as Apache, WebLogic etc.

What are the other available similar tools on HPUX ?

Thanks,
Shiv
9 REPLIES 9
Kent Ostby
Honored Contributor

Re: gdb and other tools ?

gdb is the main tool used for that.

if an application is hanging, I have seen some customers TOC the box and use q4 to see what is going on (more for device drivers) and such.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Jeff Schussele
Honored Contributor

Re: gdb and other tools ?

Hi Shiv,

The binary adb is the built-in HP-UX debugger.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Alex Glennie
Honored Contributor

Re: gdb and other tools ?

also of interest http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.8/

Tusc traces the system calls a process invokes and the signals it
receives. It displays arguments in a symbolic way, shows the first
bytes of read and write buffers as well as signal information when
available. Tusc can attach to live processes by providing PIDs
(process IDs) as argument(s).
H.Merijn Brand (procura
Honored Contributor

Re: gdb and other tools ?

'lsof' saved me from some nightmares probably more often than gdb and truss/tusc together.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Torsten.
Acclaimed Contributor

Re: gdb and other tools ?

Debugging is a hard job, the prefered tool depends on the program/script/application/system behaviour you want to "debug".
You have to understand the language of the system in every case.

For your own programs the best may be gdb, for scripts perhaps just set +x and many applications brings their own debugging tools.

It really depends on what kind of problem you want to debug.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Arunvijai_4
Honored Contributor
Solution

Re: gdb and other tools ?

Hi Shiv,

Prefer to use HP's WDB which is based on GDB and ported to HP-UX, fully supported by HP.

You can download it for free from,

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1662,00.html

Other debugging tools are,

"tusc", sometimes adb.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Shivkumar
Super Advisor

Re: gdb and other tools ?

Hi Arun,

How to install and use wdb ?

Thanks,
Shiv
Shivkumar
Super Advisor

Re: gdb and other tools ?

What is q4 ? Can someone describe the use of it ?

Thanks,
Shiv
Arunvijai_4
Honored Contributor

Re: gdb and other tools ?

Hi Shiv,

Once you download wdb, you can install it using "swinstall".

# swinstall -s wdb

Second question,

"q4" is used to analyse live kernel, You can find docs at /usr/contrib/doc/Q4Docs.tar.Z.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"