home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 21062 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!marley!ama
  2. From: ama@marley.East.Sun.COM (Al Amaral - SunSelect)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: How does one debug a server using dbx/gdb?
  5. Date: 12 Jan 1993 19:55:55 GMT
  6. Organization: Sun Microsystems Inc. - BDC
  7. Lines: 19
  8. Message-ID: <1iv7ocINNogl@seven-up.East.Sun.COM>
  9. References: <7326@ucsbcsl.ucsb.edu>
  10. NNTP-Posting-Host: marley.east.sun.com
  11.  
  12. In article <7326@ucsbcsl.ucsb.edu> doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott) writes:
  13. >Is there a special trick to debug an X server binary using gdb or dbx?  That
  14. >is, how can you start it up and have the debugger be able to follow the
  15. >progress from the beginning, given that the server is normally started via
  16. >xinit?  I know that I can start it normally and then attach to the process,
  17. >but how would I debug it from the very beginning?
  18. >Douglas Scott                              (805)893-8352
  19.  
  20. No special tricks.  The server does not have to be started up via xinit.
  21. All you have to do is start the server inside of dbx, then manually start
  22. an xterm (or a window manager) from a shell.  Naturally it helps if you 
  23. have another workstation to use for debugging the server, but in a pinch 
  24. a good ol trusty ascii terminal will do just fine.
  25.  
  26. --al--
  27.  
  28. -- 
  29. --------------------------------------------------------------
  30. Al Amaral                Al.Amaral@East.Sun.COM
  31.