RE: Attaching debugger to Pegasus processes
"Sampige, Sahana Prabhakar \(STSD\)" <[email protected]>
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <3051CFF4B0ABBF418CBA816A2BF3F20334ADEAE8F7@GVW1105EXC.americas.hpqcorp.net> |
Hi Faina, Like Biswapratap mentioned start cimserver with forceProviderProcesses=false. This way the provider will run in the cimserver process and you can debug your provider and any shared library that your provider loads. I also saw an email from you/your team regarding the trace file rotation. Looks like you are trying to debug some failure. You could try running cimserver with traceFacility="Memory". This will collect the trace messages in a wrap-around memory buffer. If this memory is part of a dump the trace message can be found by the eye-catcher "PEGASUSMEMTRACE" at the top of the memory buffer. For further details regarding this option reger to http://cvs.opengroup.org/cgi-bin/viewcvs.cgi/*checkout*/pegasus/doc/BuildAndReleaseOptions.html?rev=HEAD&content-type=text/html Rgds, Sahana ________________________________ From: Prager, Faina [mailto:[email protected]] Sent: Tuesday, February 09, 2010 10:38 AM To: Sampige, Sahana Prabhakar (STSD); [email protected] Subject: RE: Attaching debugger to Pegasus processes Thank you, Sahana, The question, actually, is how would you debug your own providers. I am trying to put a breakpoint on the place where providers shared library supposedly are loaded, but the debugger does not stop there. Any idea where the should I try to break? Thank you, Faina -----Original Message----- From: Sampige, Sahana Prabhakar (STSD) [mailto:[email protected]] Sent: Mon 2/8/2010 8:22 PM To: Potakamuri, Sreenivasa; [email protected] Subject: RE: Attaching debugger to Pegasus processes Hi Sreeni, You can attach to a debugger just like it is done for any other process. This is how I do it : 1. you start the cimserver 2. ps -ef | grep cimservermain 3. gdb --pid=<cimservermainpid> 4. b <Where ever you want to debug> 5. type c on the gdb prompt. 6. Run your test program and ddebug cimserver. Rgds, Sahana ________________________________ From: Potakamuri, Sreenivasa [mailto:[email protected]] Sent: Tuesday, February 09, 2010 3:26 AM To: [email protected] Subject: Attaching debugger to Pegasus processes Hi, Is there any documentation on how to attach a debugger to Pegasus processes. Thanks, Sreeni