home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6165 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.8 KB  |  68 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cpsc.ucalgary.ca!newshost!demarco
  3. From: demarco@fsd.cpsc.ucalgary.ca (Vince Demarco)
  4. Subject: Re: 3.0 gdb does not work?
  5. In-Reply-To: miron@extropia.wimsey.bc.ca's message of Sat, 12 Sep 1992 09:27:12 GMT
  6. Message-ID: <DEMARCO.92Sep13205456@fsd.cpsc.ucalgary.ca>
  7. Sender: news@cpsc.ucalgary.ca (News Manager)
  8. Organization: University of Calgary
  9. References: <1992Sep12.092712.706@extropia.wimsey.bc.ca>
  10. Date: Mon, 14 Sep 1992 03:54:56 GMT
  11. Lines: 55
  12.  
  13.  
  14. I also have a similar problem with gdb in 3.0 here is some sample
  15. output.
  16.  
  17. <gdb running as root>
  18. # gdb a.out
  19. Reading symbol data from a.out...done.
  20. Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
  21. (gdb) run
  22. Starting program: /private/tmp/a.out 
  23. asdf
  24.  
  25. Program exited normally.
  26. (gdb) 
  27. # su vince
  28. <gdb is now running as a normal user>
  29. 1 -[/tmp]: gdb a.out
  30. Reading symbol data from a.out...done.
  31. Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
  32. (gdb) run
  33. Starting program: /private/tmp/a.out 
  34. Problem attaching to pid 937.
  35. (gdb) 
  36. 2 -[/tmp]: 
  37.  
  38.  
  39. ------------
  40. Everything is fine if you run gdb as root, which leads me to believe
  41. that it is a problem with permissions someplace. I tryed setting gdb
  42. to setuid root, but nothing helped.  
  43.  
  44. if i try this:
  45. 18 -[/tmp]: gdb -nx /bin/ls
  46. Reading symbol data from /bin/ls...
  47. (no debugging symbols found)...done.
  48. Reading symbol data from /usr/shlib/libsys_s.B.shlib...done.
  49. (gdb) run
  50. Starting program: /bin/ls 
  51. Problem attaching to pid 1028.
  52.  
  53. I get the same result.
  54.  
  55. Any help would be greately appreciated.
  56.  
  57. And by the way, when i installed 3.0 i reformated my HD, i didn't use
  58. the Upgrade 3.0 application.
  59.  
  60. vince
  61.  
  62. vince@whatnxt.cuc.ab.ca    (NeXT Mail accepted)
  63. demarco@cpsc.ucalgary.ca
  64.  
  65.  
  66.  
  67.