gdb 5.0 m68k bug remains???

Joel Sherrill joel.sherrill at OARcorp.com
Tue Jun 27 22:34:31 UTC 2000


Eric Valette has updated the Ethernet remote debugging support for
RTEMS to gdb 5.0 and I am merging the other parts of the gdb 4.18
patch.  I have come across this small patch that I think
still needs to be applied but wanted feedback before discarding it.

diff -uNr /usr1/rtems/work-tools/original/gdb-4.18/gdb/m68k-tdep.c
gdb-4.18/gdb/m68k-tdep.c
--- /usr1/rtems/work-tools/original/gdb-4.18/gdb/m68k-tdep.c    Thu Jul
25 22:00:05 1996
+++ gdb-4.18/gdb/m68k-tdep.c    Tue May  2 11:36:12 2000
@@ -154,6 +154,11 @@
     {
       op = read_memory_integer (ip, 2);
       op &= 0xFFFF;
+
+      if ((op == 0) && sal.end)        /* certainly cannot access code
*/
+       {
+         return limit;
+        }

       if (op == P_LINK_W)
        {

Feedback welcomed.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the users mailing list