This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build/1100: gdb 5.3 fails to build on m68k-sun-sunos4.1.1_U1


>Number:         1100
>Category:       build
>Synopsis:       gdb 5.3 fails to build on m68k-sun-sunos4.1.1_U1
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          patch
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 27 17:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     grubba at grubba dot org
>Release:        gdb-5.3
>Organization:
>Environment:
$ ./config.guess 
m68k-sun-sunos4.1.1_U1
$ gcc -v
Reading specs from /sw/local/lib/gcc-lib/m68k-sun-sunos4.1.1_U1/3.0.4/specs
Configured with: ./configure --prefix=/sw/local
Thread model: single
gcc version 3.0.4
>Description:
gdb/config/m68k/tm-sun3.h has a define of BELIEVE_PCC_PROMOTION_TYPE, which is incompatible with the usage in eg gdb/gdbarch.c.

sun3-nat.c doesn't compile since FPC_REGNUM isn't defined in gdb/config/m68k/tm-m68k.h anymore.

gdb/remote.c needs definitions of REGISTER_BYTES_FP and REGISTER_BYTES_NOFP.
>How-To-Repeat:
Attempt to compile gdb 5.3 on a Sun-3/480 or similar running SunOS 4.1.1_U1.
>Fix:
*** gdb-5.3/gdb/config/m68k/tm-sun3.h   Tue Mar  6 09:21:30 2001
--- gdb-5.3-patched/gdb/config/m68k/tm-sun3.h   Wed Feb 26 22:20:55 2003
***************
*** 78,84 ****
  #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
  
  /* If sun3 pcc says that a parameter is a short, it's a short.  */
! #define BELIEVE_PCC_PROMOTION_TYPE
  
  /* Can't define BELIEVE_PCC_PROMOTION for SunOS /bin/cc of SunOS 4.1.1.
     Apparently Sun fixed this for the sparc but not the sun3.  */
--- 78,84 ----
  #define GET_LONGJMP_TARGET(ADDR) m68k_get_longjmp_target(ADDR)
  
  /* If sun3 pcc says that a parameter is a short, it's a short.  */
! #define BELIEVE_PCC_PROMOTION_TYPE    1
  
  /* Can't define BELIEVE_PCC_PROMOTION for SunOS /bin/cc of SunOS 4.1.1.
     Apparently Sun fixed this for the sparc but not the sun3.  */

*** gdb-5.3/gdb/config/m68k/tm-m68k.h   Tue Jul  9 21:48:40 2002
--- gdb-5.3-patched/gdb/config/m68k/tm-m68k.h   Thu Feb 27 12:33:02 2003
***************
*** 30,33 ****
--- 30,34 ----
  
  #define D0_REGNUM 0
  #define A0_REGNUM 8
+ #define FPC_REGNUM    26


*** gdb-5.3/gdb/remote.c        Mon Aug 19 01:17:57 2002
--- gdb-5.3-patched/gdb/remote.c        Thu Feb 27 12:46:31 2003
***************
*** 55,60 ****
--- 55,63 ----
  
  #include "gdbcore.h" /* for exec_bfd */
  
+ #define REGISTER_BYTES_FP (16*4 + 8 + 8*12 + 3*4)
+ #define REGISTER_BYTES_NOFP (16*4 + 8)
+ 
  /* Prototypes for local functions */
  static void cleanup_sigint_signal_handler (void *dummy);
  static void initialize_sigint_signal_handler (void);

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]