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

  1. Xref: sparky comp.sys.sun.misc:4150 comp.sys.sun.apps:1862
  2. Path: sparky!uunet!gatech!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!news.bbn.com!daedalus.bbn.com!wsadkin
  3. From: wsadkin@bbn.com (Will Sadkin)
  4. Newsgroups: comp.sys.sun.misc,comp.sys.sun.apps
  5. Subject: Why is .dbxinit read before symbol table?
  6. Message-ID: <las68iINN42n@news.bbn.com>
  7. Date: 9 Sep 92 15:32:34 GMT
  8. Sender: wsadkin@daedalus.bbn.com (Will Sadkin)
  9. Lines: 25
  10. NNTP-Posting-Host: daedalus.bbn.com
  11.  
  12.  
  13. Can anyone tell me why the .dbxinit file (or -s <startup file>) is read
  14. *prior* to reading the symbol table for the program being debugged?  To
  15. me, this make the whole concept rather useless...  I want my startup file
  16. to contain a line like "stop in init_proc", but dbx just says 
  17. "1: no module, procedure or file named init_proc" when I run it, because it
  18. hasn't read the symbol table when it tries to run the commands in the file. 
  19.  
  20. WHY OH WHY doesn't it read the symbol table 1st? 
  21.  
  22. I am trying to attach to a running process, and get it to stop when it
  23. gets to a particular routine (same one every time) without having to type
  24. it by hand on each run. (This is not a problem on other platforms...)
  25.  
  26. Can anyone tell me: 
  27. a) if this is possible using sun's dbx?
  28. b) how do I accomplish it?
  29.  
  30. Thanks,
  31. /Will
  32. -------------------------------------------------------------------------------
  33. Will Sadkin                | "Never draw what you can copy;
  34. BBN Systems & Technologies |  never copy what you can trace;
  35. wsadkin@bbn.com            |  never trace what you can cut out and paste down!"
  36. -------------------------------------------------------------------------------
  37.