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

  1. Path: sparky!uunet!trwacs!epstein
  2. From: epstein@trwacs.fp.trw.com (Jeremy Epstein)
  3. Newsgroups: comp.os.mach
  4. Subject: gdb attach/detach on Mach 2.5?
  5. Message-ID: <701@trwacs.fp.trw.com>
  6. Date: 18 Aug 92 14:51:56 GMT
  7. Organization: TRW Systems Division, Fairfax VA
  8. Lines: 22
  9.  
  10. [For those people on the machi386 distribution, I apologize for
  11. the duplicate posting.]
  12.  
  13. Environment: Mach 2.5 on Gateway 2000 486 DX2/50
  14.  
  15. We recently updated from a Sun 3 to a 486 platform (both running
  16. Mach 2.5).  On our Sun 3 version of gdb, you could type "attach <pid>"
  17. (and "detach") and debug a process that was running.  By adding the flag
  18. ATTACH_DETACH to gdb/m-i386.h, we were able to add the commands to
  19. the 386/486 version.  However, the source code for the 486 version
  20. relies on the ptrace call, which is not present in Mach 2.5.  Before
  21. I try to merge the (much older) Sun 3 code into the 486 version to
  22. support these commands, does anyone have a version of gdb that supports
  23. attach/detach?
  24.  
  25. Thanks,
  26. --Jeremy
  27. -- 
  28. Jeremy Epstein            Internet: epstein@trwacs.fp.trw.com
  29. Trusted X Research Group    Voice: +1 703/803-4947
  30. TRW Systems Division
  31. Fairfax Virginia
  32.