home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / programm / 2286 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.9 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!ai-lab!fiber-one!sundar
  2. From: sundar@fiber-one.ai.mit.edu (Sundar Narasimhan)
  3. Newsgroups: comp.programming
  4. Subject: Re: What would you like in a debugger?
  5. Message-ID: <26482@life.ai.mit.edu>
  6. Date: 12 Aug 92 17:59:28 GMT
  7. References: <bosullvn.713038630@unix1.tcd.ie> <SOMMERFELD.92Aug6095203@gourmet.apollo.hp.com> <12455@lupine.ncd.com>
  8. Sender: news@ai.mit.edu
  9. Reply-To: sundar@ai.mit.edu
  10. Organization: MIT Artificial Intelligence Laboratory
  11. Lines: 25
  12.  
  13. In article <12455@lupine.ncd.com>, jim@ncd.com (Jim Fulton) writes:
  14. |> 
  15. |>     Bill writes:
  16. |> 
  17. |>     Such a thing existed in X version 10; it was called Xnest.  I'm
  18. |>     surprised that it hasn't been reimplemented for X11 by now..
  19. |> 
  20. |> I forget the actual name of it, there was an "Xnone" that I think Matt Pappas
  21. |> rigged up in the summer of '88 or '89 when he was a student working for us at the
  22. |> X Consortium.  It had no input or output devices and just did all of the graphics
  23. |> to a chunk of memory (GetImage was used to compare images).  
  24. |> 
  25. |> It was used for a little while, but folks generally found that it was easier to
  26. |> just throw hardware at the problem.  With all of the different platforms we were
  27. |> trying to support as well as samples from the X terminal companies, we each had
  28. |> at least 2 displays.  This also helped when debugging applications that did
  29. |> any sort of grab (e.g. window managers, xdm, etc.).
  30.  
  31. With X, there are 3 processes involved which is the main cause of the
  32. problem.  The debugger, the application process and the X server (really 4 if
  33. you include the window manager). There should be a way of preventing deadlock
  34. which can arise in such situations transparent to the application process.
  35. For example, if Motif or Xt decide to do a grab, then a debugger's PTRACE
  36. messages could also be intercepted by them to release the grab. Another 
  37. is for debuggers to talk to the X server or WM direct.  
  38.