Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XLDB debuger about fork function and multiethreaded applications?

Status
Not open for further replies.

gogo

Programmer
Oct 12, 1999
2
SI
I encounterred not a rare problem, I assume, a problem debuging with AIX's XLDB debuger when tracing through fork and fork-based functions. Debuger seems to prefer parent process and refuses to step into child process ever. Therefore all fork made applications as well as usage of fork-based instructions, such as system, popen, ..., called in C, C++, does not provide their services, since they run a child process and in debug mode of XLDB only parent process runs and child processes are not run at all.<br>
QUESTION: Is there a way, not by tricks of changeing source code in order to achieve desired effect, but by forcing this debuger to dive into child process, or by any other way that would support debuging of fork-based application such as it is, considering its source code? <p>Zoran Šinigoj<br><a href=mailto:zorans@halcom.si>zorans@halcom.si</a><br><a href= > </a><br>
 
I've allready found answer about this problem. It was just that I had been trying to work on XLDB with option Multiprocess debuging, which can be set in window Commands under choice Options, turned on. This is supposed to support traceing of parent, or child, or allso both of processes when confronted with fork function. But by no chance did not work as to be able to proceed with debugging of parent when allready run through child, but if I tried to debug only parent, child process would not execute at all. <br>
Well, the last is acomplished with turning off option Multiprocess debuging. Debugging goes through parent, but child processes are automatically run when fork function is encounterred. Thus all fork-based functions allso work in this mode. <p>Zoran Šinigoj<br><a href=mailto:zorans@halcom.si>zorans@halcom.si</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top