Operating System - HP-UX
1823113 Members
3244 Online
109646 Solutions
New Discussion юеВ

Re: Unix Core dump files: Debugging

 
SOLVED
Go to solution
Sanjay Verma
Super Advisor

Unix Core dump files: Debugging

Hi Friends,

As I understand there are two popular tools for debugging the Unix core dump files - gdp & dbx. I am following questions:

(a) Is there any HP-UX proprietory debugging tool available?

(b) From where I can download these debuggers?

(c) Which one is the most efficient and debugs the best.

Regards,
Sanjay
Co-operation - The biggest chain reaction
6 REPLIES 6
Deepak Extross
Honored Contributor
Solution

Re: Unix Core dump files: Debugging

Haven't heard of these debuggers you mention, but you can try using the GNU debugger (gdb) from here http://sources.redhat.com/gdb/download/
It works well on Unix, and its easy to backtrace core files to pinpoint the cause of the error.

Or you can try wdb, which has some additional features over gdb and is supported by HP. http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1672,00.html
Sanjay Verma
Super Advisor

Re: Unix Core dump files: Debugging

Thanks Deepek. I've downloaded the copy but getting the following error mesg. when installing the too. Any idea about this?

# swinstall -s /opt/psoft/downloads/wdb-gui_1.4.01.depot \*

======= 12/06/02 14:21:28 SGP BEGIN swinstall SESSION
(non-interactive) (jobid=sgpux118-0315)

* Session started for user "root@sgpux118".

* Beginning Selection
* Target connection succeeded for "sgpux118:/".
ERROR: Could not apply the software selection "*" because there are
no product variations that are compatible with the destination
host(s).
* Software selection failed for
"sgpux118:/opt/psoft/downloads/wdb-gui_1.4.01.depot".
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.
Co-operation - The biggest chain reaction
Sanjay Verma
Super Advisor

Re: Unix Core dump files: Debugging

Thanks Deepek. I've downloaded the copy but getting the following error mesg. when installing the too. Any idea about this?

# swinstall -s /opt/psoft/downloads/wdb-gui_1.4.01.depot \*

======= 12/06/02 14:21:28 SGP BEGIN swinstall SESSION
(non-interactive) (jobid=sgpux118-0315)

* Session started for user "root@sgpux118".

* Beginning Selection
* Target connection succeeded for "sgpux118:/".
ERROR: Could not apply the software selection "*" because there are
no product variations that are compatible with the destination
host(s).
* Software selection failed for
"sgpux118:/opt/psoft/downloads/wdb-gui_1.4.01.depot".
ERROR: No software has been selected.
ERROR: Cannot continue the "swinstall" task.
* Selection had errors.
Co-operation - The biggest chain reaction
Mehdi_1
Regular Advisor

Re: Unix Core dump files: Debugging

Hi

I agree with Deepak, "Gdb" is one of the best debugger for Unix. The binary for gdb-5.2.1 only for HPUX-11.00 can be downloaded from:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gdb-5.2.1

If you want the graphic version you should take the ddd program.

In regard to your above question you need to type:

swinstall -s /opt/psoft/downloads/wdb-gui_1.4.01.depot wdb

Thanks

__Mehdi


Sundar_7
Honored Contributor

Re: Unix Core dump files: Debugging

Hi Sanjay,

U might have downloaded an incompatible version and trying to install.(i.e you may be trying to install wdb for HP-UX 11.0 in HP-UX 10.20 box)

If U are still sure that U have the right version to install then, u may have to change some of the defaults to swinstall.

# swinstall /opt/psoft/downloads/wdb-gui_1.4.01.depot \* -x match_target=false

may be allow_incompatible=false

Check out the man page of swinstall and confirm both the above switches (match_target& allow_incompatible).

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Sanjay Verma
Super Advisor

Re: Unix Core dump files: Debugging

Hi Deepak, Mehdi & Sundara

Yes, you all are right. Basically the diff. version of wdb was downloaded. When downloaded the correct version - wdbgui-3.1.1-11.00.depot (approx 10MB), it worked fine.

Thanks for your brilliant suggestions.

Cheers,
Sanjay
Co-operation - The biggest chain reaction