home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / apps / 1849 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.4 KB

  1. Path: sparky!uunet!usc!news.bbn.com!daedalus.bbn.com!wsadkin
  2. From: wsadkin@bbn.com (Will Sadkin)
  3. Newsgroups: comp.sys.sun.apps
  4. Subject: problem when dbx'ing a running process
  5. Date: 8 Sep 1992 16:33:40 GMT
  6. Lines: 21
  7. Sender: wsadkin@daedalus.bbn.com (Will Sadkin)
  8. Distribution: world
  9. Message-ID: <laplf4INN53g@news.bbn.com>
  10. NNTP-Posting-Host: daedalus.bbn.com
  11.  
  12. -- 
  13. I have written a program which fork/execs itself to run dbx on the child
  14. process (the original program); it's supposed to attach to the child (which
  15. is paused, waiting for a signal), and use the -sr <file> option to run
  16. and then remove a startup file.  The startup file contains a command to stop
  17. in a particular routine.  
  18. Unfortunately, the dbx says:
  19.  /tmp/dbxinit.nnnn:  1: no module, procedure or file named `<procname>'
  20.  (dbx)
  21. When I then type
  22.  (dbx) stop in <procname>
  23. it works just fine. (I can then type cont, and the program stops right where
  24. I wanted it to.  In my opinion, the init file should work, and this is a bug...
  25. Anyone have any ideas on how to get around it?  (sun?)
  26.  
  27. /Will
  28. -------------------------------------------------------------------------------
  29. Will Sadkin                | "Never draw what you can copy;
  30. BBN Systems & Technologies |  never copy what you can trace;
  31. wsadkin@bbn.com            |  never trace what you can cut out and paste down!"
  32. -------------------------------------------------------------------------------
  33.