DBX - How To


Environment

General AIX

Question

DBX - How To?

Answer

DBX Stack Trace Instructions

  1. Change the subdirectory to where the core file is located, enter:
    	cd <subdirectory>
    
  2. Capture the console output, enter:
    	script
    
  3. Enter:
    	dbx core
    
  4. To exit dbx, enter:
    	quit
    
  5. Produce the full path name, enter:
    	whence
    
  6. Enter:
    	dbx core
    
  7. Format trace, enter:
    	where
    
  8. Exit dbx, enter:
    	quit
    
  9. To leave script, press ctrl-D.

Attach to hung process

  1. Capture console output, enter:
    	script
    
  2. Enter:
    	ps -ef | grep <hung process>
    
  3. Enter:
    	dbx -a <process ID>
    
  4. Format trace, enter:
    	where
    
  5. Leave dbx, enter:
    	quit
    
  6. To leave script, press ctrl-D.

The script will be named typescript and will be located in the current working directory.


DBX - How To: ITEM: FAX
Dated: 2000/12/19~00:00 Category: gph
This HTML file was generated 2001/03/08~16:06:53
Comments or suggestions? Contact us