home *** CD-ROM | disk | FTP | other *** search
- I just uploaded GDB 4.9 and some associated junk to
- software/os/bsd/NetBSD/NetBSD-Amiga/incoming on ftp.eunet.ch. Anything
- you might find on wuarchive.wustl.edu is junk. Here is the README file:
-
- ------------------------------------------------------------------------
- Here is a set of files to get GDB working on the #713
- NetBSD-Amiga kernel. Unfortunately, the kernel requires some patching
- again. One of the patched files is arch/amiga/include/reg.h, so make
- sure to copy it to /usr/include/machine when done.
-
- There are 4 files to look at:
-
- gdb-4.9-README this file
- gdb-4.9.gz gdb 4.9 binary
- gdb-4.9-amigabsd-diffs.gz diffs to gdb 4.9 source distribution
- sys713-debug-diffs.gz diffs to kernel to get debugging working
-
- There can be problems doing backtraces (e.g., using the
- 'where' command) in that the stack-frame tracing code sometimes sees
- bogus frame pointers past start() and prints them out. It looks ugly,
- but nothing bad really happens.
-
- If you have problems with this, please send mail to me, Andy
- Heffernan, at ahh@netcom.com.
- ------------------------------------------------------------------------
-
- To Markus and other kernel people, the kernel diffs are as follows.
- o The change to kern/sys_process.c was to fix an uninitialized-variable
- problem so ptrace() would work.
- o The change to arch/amiga/include/reg.h is to make sure the array size
- NIPCREG is large enough to contain the register indices (notably PC)
- used in arch/amiga/amiga/machdep.c.
-
- *** kern/sys_process.c-orig Sun Sep 5 19:06:20 1993
- --- kern/sys_process.c Tue Nov 30 21:16:28 1993
- ***************
- *** 108,113 ****
- --- 108,114 ----
- vm_map_lookup_done(tmap, out_entry);
-
- /* Find space in kernel_map for the page we're interested in */
- + kva = 0;
- rv = vm_map_find(kernel_map, object, off, &kva, PAGE_SIZE, TRUE);
-
- if (!rv) {
- ***************
- *** 199,204 ****
- --- 200,206 ----
- rv = vm_fault(map, pageno, VM_PROT_WRITE, FALSE);
-
- /* Find space in kernel_map for the page we're interested in */
- + kva = 0;
- rv = vm_map_find(kernel_map, object, off, &kva, PAGE_SIZE, TRUE);
-
- if (!rv) {
- *** arch/amiga/include/reg.h-orig Sun Oct 24 09:48:19 1993
- --- arch/amiga/include/reg.h Wed Nov 24 20:06:16 1993
- ***************
- *** 66,75 ****
- #define PC (17)
- #define PS (16)
-
- ! #define NIPCREG 17
- #ifdef IPCREG
- int ipcreg[NIPCREG] =
- ! {D0,D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6,A7,PC};
- #endif
-
- #ifdef KERNEL
- --- 66,75 ----
- #define PC (17)
- #define PS (16)
-
- ! #define NIPCREG 18
- #ifdef IPCREG
- int ipcreg[NIPCREG] =
- ! {D0,D1,D2,D3,D4,D5,D6,D7,A0,A1,A2,A3,A4,A5,A6,A7,PS,PC};
- #endif
-
- #ifdef KERNEL
-
- --
- ------------------------------------------------------------------------
- Andy Heffernan ahh@netcom.com
-
-