[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is gdb-4.17.87?



Chris Johns wrote:
> 
> Joel Sherrill wrote:
> >
> > It was a random snapshot-ish version I picked up because of the
> > long gap between 4.17 and 4.18.  I recommended using 4.18 for C
> > and 4.17 for Ada.
> >
> 
> I recommend a later snapshot than the 4.18 release. A problem exists in
> the m68k cross build with expressions and registers or indirect memory.
> 

The change to make 4.18 work properly with 68k/Coldfire targets 
on Intel hosts (actually any big-endian target with a little-endian
host) is very simple:

diff -urN gdb-4.18/gdb/findvar.c gdb-4.18-new/gdb/findvar.c
--- gdb-4.18/gdb/findvar.c      Fri Jan 29 03:46:03 1999
+++ gdb-4.18-new/gdb/findvar.c  Tue Dec  7 13:23:36 1999
@@ -253,6 +253,7 @@
      LONGEST val;
 {
   if( TARGET_BYTE_ORDER == BIG_ENDIAN
+      && HOST_BYTE_ORDER != LITTLE_ENDIAN
       &&  len != sizeof( LONGEST )) {
     /* On big-endian machines (e.g., HPPA 2.0, narrow mode)
      * just letting this fall through to the call below will


-- 
Eric Norum                                 eric at cls.usask.ca
Canadian Light Source                      Phone: (306) 966-6308
University of Saskatchewan                 FAX:   (306) 966-6058
Saskatoon, Canada.