[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::decladebug

Title:Digital Ladebug debugger
Moderator:TLE::LUCIA
Created:Fri Feb 28 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:969
Total number of notes:3959

812.0. "-noproc and v4.0" by RHETT::HALETKY () Tue Feb 04 1997 19:12

    
    Hello,
    
    In Digital Unix 4.0 the -noproc option for DBX no longer works. How do
    you debug programs with forks in them now?
    
    Best regards,
    Ed Halekty
    
T.RTitleUserPersonal
Name
DateLines
812.1-noroc works fine for me on 4.0 and up...SMURF::PETERTrigidly defined areas of doubt and uncertaintyWed Feb 05 1997 09:5537
    > In Digital Unix 4.0 the -noproc option for DBX no longer works.
    > How do debug programs with forks in them now?
    
    The -noproc option has not changed at all.  What type of 
    problems are you seeing?  If you see a message that says...
    
    New child attached.  Use switch to gain access to process xxx
    
    then you are running under the /proc interface.  Of course
    the debugger is really dbx, rather than DBX, so maybe you have 
    an alias set up that is ignoring -noproc?  If for some reason 
    dbx just ignores your requests for -noproc, you can always 
    set the dbx variables 
    
    $stop_on_fork   1
    $stop_on_exec   1
    
    These default to 1, but can be set to 0, 
    
    set $stop_on_fork = 0
    
    and you will still see the message
    
    New child attached.  Use switch to gain access to process 1133
    
    but the child will not stop and the parent process will not be
    paused waiting on it.
    
    Of course, since this is the ladebug forum, I would be remiss not
    to point out that ladebug uses a totally different approach
    and does not attach to the child as the default.  General dbx
    questions should be directed towards the DIGITAL_UNIX
    notes conference.  But since it started here, it would be easier
    to follow up here as well, unless the ladebug folks object.
    
    PeterT