home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-12 / text0017.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  2.7 KB  |  86 lines

  1.     I just uploaded GDB 4.9 and some associated junk to
  2. software/os/bsd/NetBSD/NetBSD-Amiga/incoming on ftp.eunet.ch.  Anything
  3. you might find on wuarchive.wustl.edu is junk.  Here is the README file:
  4.  
  5. ------------------------------------------------------------------------
  6.     Here is a set of files to get GDB working on the #713
  7. NetBSD-Amiga kernel.  Unfortunately, the kernel requires some patching
  8. again.  One of the patched files is arch/amiga/include/reg.h, so make
  9. sure to copy it to /usr/include/machine when done.
  10.  
  11. There are 4 files to look at:
  12.  
  13. gdb-4.9-README            this file
  14. gdb-4.9.gz            gdb 4.9 binary
  15. gdb-4.9-amigabsd-diffs.gz    diffs to gdb 4.9 source distribution
  16. sys713-debug-diffs.gz        diffs to kernel to get debugging working
  17.  
  18.     There can be problems doing backtraces (e.g., using the
  19. 'where' command) in that the stack-frame tracing code sometimes sees
  20. bogus frame pointers past start() and prints them out.  It looks ugly,
  21. but nothing bad really happens.
  22.  
  23.     If you have problems with this, please send mail to me, Andy
  24. Heffernan, at ahh@netcom.com.
  25. ------------------------------------------------------------------------
  26.  
  27. To Markus and other kernel people, the kernel diffs are as follows.
  28. o The change to kern/sys_process.c was to fix an uninitialized-variable
  29.   problem so ptrace() would work.
  30. o The change to arch/amiga/include/reg.h is to make sure the array size
  31.   NIPCREG is large enough to contain the register indices (notably PC)
  32.   used in arch/amiga/amiga/machdep.c.
  33.  
  34. *** kern/sys_process.c-orig    Sun Sep  5 19:06:20 1993
  35. --- kern/sys_process.c    Tue Nov 30 21:16:28 1993
  36. ***************
  37. *** 108,113 ****
  38. --- 108,114 ----
  39.       vm_map_lookup_done(tmap, out_entry);
  40.     
  41.       /* Find space in kernel_map for the page we're interested in */
  42. +     kva = 0;
  43.       rv = vm_map_find(kernel_map, object, off, &kva, PAGE_SIZE, TRUE);
  44.   
  45.       if (!rv) {
  46. ***************
  47. *** 199,204 ****
  48. --- 200,206 ----
  49.           rv = vm_fault(map, pageno, VM_PROT_WRITE, FALSE);
  50.   
  51.       /* Find space in kernel_map for the page we're interested in */
  52. +     kva = 0;
  53.       rv = vm_map_find(kernel_map, object, off, &kva, PAGE_SIZE, TRUE);
  54.   
  55.       if (!rv) {
  56. *** arch/amiga/include/reg.h-orig    Sun Oct 24 09:48:19 1993
  57. --- arch/amiga/include/reg.h    Wed Nov 24 20:06:16 1993
  58. ***************
  59. *** 66,75 ****
  60.   #define    PC    (17)
  61.   #define    PS    (16)
  62.   
  63. ! #define    NIPCREG 17
  64.   #ifdef IPCREG
  65.   int ipcreg[NIPCREG] =
  66. !     {D0,D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6,A7,PC};
  67.   #endif
  68.   
  69.   #ifdef KERNEL
  70. --- 66,75 ----
  71.   #define    PC    (17)
  72.   #define    PS    (16)
  73.   
  74. ! #define    NIPCREG 18
  75.   #ifdef IPCREG
  76.   int ipcreg[NIPCREG] =
  77. !     {D0,D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6,A7,PS,PC};
  78.   #endif
  79.   
  80.   #ifdef KERNEL
  81.  
  82. --
  83. ------------------------------------------------------------------------
  84. Andy Heffernan                                            ahh@netcom.com
  85.  
  86.