Operating System - HP-UX
1832487 Members
4271 Online
110043 Solutions
New Discussion

Re: can u help me convert dde commands into gdb ?

 
SOLVED
Go to solution
Peter_472
New Member

can u help me convert dde commands into gdb ?

Hi

Can u help me translate dde commands into gdb ?

dde -ui line -attach PID PATH-TO-PROCESS
dde>list thread -full
dde>tb -thread all
dde>quit

What I've found is

gdb --pid=X --exec="PATH"


Thanks a lot

Peter


10 REPLIES 10
harry d brown jr
Honored Contributor

Re: can u help me convert dde commands into gdb ?

http://docs.hp.com/en/B3901-90005/B3901-90005.pdf

live free or die
harry d brown jr
Live Free or Die
harry d brown jr
Honored Contributor

Re: can u help me convert dde commands into gdb ?

or http://hpc.uky.edu/Docs/Prog/debugging/wdb/html/wdb/C/WDBrln.html

live free or die
harry d brown jr
Live Free or Die
Peter_472
New Member

Re: can u help me convert dde commands into gdb ?

thanks for link 4 documentation, I know RTFM, but there is small problem, i'm not hp-ux admin not even Cdeveloper; my own part is in EAI(Middleware), so we get instructions from IBM, how to trace some process, but there is no money in the moment to buy dde, that's why i'm askin for help to convert commands into gdb - which i know is for free; pleas help me !!!
harry d brown jr
Honored Contributor

Re: can u help me convert dde commands into gdb ?

What compiler(s) are you using?

gcc, HP C, or HP's aCC??

live free or die
harry d brown jr
Live Free or Die
Peter_472
New Member

Re: can u help me convert dde commands into gdb ?

all what i see, there is "cc" command aviable, but it is not neccesary to compile anythin, we have to send SIGUSR2 to WebsphereMQ process then it'll generate internel MQ trace, hangup process and then debug it with dde; but there is no dde only gdb:) thx
harry d brown jr
Honored Contributor

Re: can u help me convert dde commands into gdb ?

Try these commands and check the output (what `which gcc`) & (what `which cc`):

[root@vpart1 /]# what `which cc`
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $
LINT B.11.11.29484.GP CXREF B.11.11.29484.GP
HP92453-01 B.11.11.29484.GP HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $
[root@vpart1 /]# what `which gcc`
/usr/local/bin/gcc:
$Revision: 92453-07 linker linker crt0.o B.11.43 050125 $
[root@vpart1 /]#


live free or die
harry d brown jr
Live Free or Die
Peter_472
New Member

Re: can u help me convert dde commands into gdb ?

ldce020:/home/mqm$ what `which cc`
/usr/bin/cc:
HP92453-01 A.11.01.21 HP C (Bundled) Compiler


and there is no gcc
harry d brown jr
Honored Contributor
Solution

Re: can u help me convert dde commands into gdb ?

dde -ui line -attach PID PATH-TO-PROCESS
GDB*===> gdb PATH-TO-PROCESS PID

dde>list thread -full
GDB*===> info threads

dde>tb -thread all
GDB*===> bt

dde>quit
GDB*==> q


live free or die
harry d brown jr
Live Free or Die
harry d brown jr
Honored Contributor

Re: can u help me convert dde commands into gdb ?

dde manual: http://docs.hp.com/en/B3476-90015/B3476-90015.pdf

gdb manual: http://sources.redhat.com/gdb/current/onlinedocs/gdb_toc.html

live free or die
harry d brown jr
Live Free or Die
Peter_472
New Member

Re: can u help me convert dde commands into gdb ?

THX !!! GOD BLESS U :)