From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100159,805e0071ac25e02c X-Google-Attributes: gid100159,public X-Google-Thread: fc89c,805e0071ac25e02c X-Google-Attributes: gidfc89c,public X-Google-Thread: f6653,805e0071ac25e02c X-Google-Attributes: gidf6653,public X-Google-Thread: fcda7,805e0071ac25e02c X-Google-Attributes: gidfcda7,public X-Google-Thread: 10650a,805e0071ac25e02c X-Google-Attributes: gid10650a,public X-Google-Thread: 115614,805e0071ac25e02c X-Google-Attributes: gid115614,public X-Google-Thread: 11035d,805e0071ac25e02c X-Google-Attributes: gid11035d,public X-Google-Thread: fee84,805e0071ac25e02c X-Google-Attributes: gidfee84,public From: guest Subject: Re: best UNIX OS as primary platform for UNIX system software develpoment? Date: 1996/08/20 Message-ID: <4vb3m4$ci3@knot.queensu.ca>#1/1 X-Deja-AN: 175405160 distribution: inet references: <4v2j4b$2bs@knot.queensu.ca> <4v9jaf$406@eccdb1.pms.ford.com> organization: Queen's University, Kingston newsgroups: comp.unix.solaris,comp.sys.sun.misc,comp.sys.hp.hpux,comp.unix.internals,comp.unix.programmer,comp.unix.aix,comp.unix.osf.osf1,comp.sys.sgi.misc In article <4v9jaf$406@eccdb1.pms.ford.com> amk@ba0024.ba.ford.com wrote: > Had to respond to this: "For example, HP-UX doesn't allow you to attach > to a process from a debugger...". Check out the man page (from HP-UX) > on xdb, specifically the -P option. We do this all the time. > I don't know what JianLin means when he say "HP-UX doesn't allow you to attach to a process from a debugger ...". However, I will agree with him if he means "have trouble to attach". Our company upgradated to HP-UX 10 recently and I do get trouble on attaching a running process For small test code, there is no problem at all. But when trying to attach our real code process(we do vfork()+ *exec()* because we use pthread and need to avoid the hassle of thread resource management in child process, so, attaching is the easiest way to catch and debug the child process), the xdb simply issues "Attach failed": %guest: ps -fu guest UID PID PPID C STIME TTY TIME COMMAND guest 16548 1 0 17:42:44 ? 0:00 bin/a.out ... %guest: xdb -d src bin/a.out -P 16548 .... Attaching process 16548 Attach failed %guest: without further message. I am not work with JianLin despite we post from same domain(I work in SF Bay and he in Toronto believe me or not). So, if he has same trouble (i just know that from his post and your followup)on attaching running process with xdb, then xdb must has some bugs on attaching process not documented by the man page and the Release Notes. Of cause, my code certainly has *lots of* bugs. That is what the xdb for, isn't it? However, I am not trying to say HP is a good or poor system for development job(actually, I would like to work on HP for some kind job and like to work on other platforms for other kinds of projects). Sometime, you would like pick one depend on what you are going to do (for example, I am now using DCE which is boundled with HP, so I will not consider solaris or sunos even they are also nice and systems) and sometime you simply have no choice. -g >Tony Kruse >SysAdmin >Ford Vehicle Operations Emissions Lab >Allen Park, Mi USA >akruse1@ford.com