This is the mail archive of the gdb-patches@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]

[PATCH]: tweak netbsd/m68k config


I have committed the enclosed patch.

Due to a missing header file, the netbsd/m68k target didn't compile.
While fixing that, I fixed structure returns and some leftover cruft 
in i386nbsd-tdep.c.

I noticed when preparing this message that I missed documenting the
change to BKP_VECTOR and REMOTE_BKP_VECTOR, so I'll be updating the
ChangeLog file accordingly.

        --jtc

001-01-17  J.T. Conklin  <jtc@redback.com>

        * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
        * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
        * m68knbsd-tdep.c: New file.

        * i386nbsd-tdep.c: Remove #if 0'd out #includes.

        * m68knbsd-nat.c: #include gdbcore.h.

Index: i386nbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386nbsd-tdep.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** i386nbsd-tdep.c	2000/09/07 20:08:40	1.1
--- i386nbsd-tdep.c	2001/01/17 23:07:15	1.2
***************
*** 21,34 ****
  
  #include "defs.h"
  #include "gdbtypes.h"
- #if 0
- #include <sys/types.h>
- #include <sys/ptrace.h>
- #include <machine/reg.h>
- #include <machine/frame.h>
- #include "inferior.h"
- #include "gdbcore.h" /* for registers_fetched() */
- #endif
  
  int
  i386nbsd_use_struct_convention (int gcc_p, struct type *type)
--- 21,26 ----
Index: config/m68k/nbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/nbsd.mt,v
retrieving revision 1.4
retrieving revision 1.5
diff -c -r1.4 -r1.5
*** nbsd.mt	2000/12/08 19:46:06	1.4
--- nbsd.mt	2001/01/17 23:07:15	1.5
***************
*** 1,5 ****
  # Target: Motorola m68k running NetBSD
! TDEPFILES= m68k-tdep.o solib.o solib-svr4.o
  TM_FILE= tm-nbsd.h
  
  GDBSERVER_DEPFILES= low-nbsd.o
--- 1,5 ----
  # Target: Motorola m68k running NetBSD
! TDEPFILES= m68k-tdep.o m68knbsd-tdep.o solib.o solib-svr4.o
  TM_FILE= tm-nbsd.h
  
  GDBSERVER_DEPFILES= low-nbsd.o
Index: config/m68k/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-nbsd.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** tm-nbsd.h	1999/04/16 01:34:22	1.1
--- tm-nbsd.h	2001/01/17 23:07:15	1.2
***************
*** 1,21 ****
  /* Macro definitions for i386 running under NetBSD.
     Copyright 1994 Free Software Foundation, Inc.
  
! This file is part of GDB.
  
! This program is free software; you can redistribute it and/or modify
! it under the terms of the GNU General Public License as published by
! the Free Software Foundation; either version 2 of the License, or
! (at your option) any later version.
! 
! This program is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
! GNU General Public License for more details.
! 
! You should have received a copy of the GNU General Public License
! along with this program; if not, write to the Free Software
! Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
  
  #ifndef TM_NBSD_H
  #define TM_NBSD_H
--- 1,22 ----
  /* Macro definitions for i386 running under NetBSD.
     Copyright 1994 Free Software Foundation, Inc.
  
!    This file is part of GDB.
  
!    This program is free software; you can redistribute it and/or modify
!    it under the terms of the GNU General Public License as published by
!    the Free Software Foundation; either version 2 of the License, or
!    (at your option) any later version.
! 
!    This program is distributed in the hope that it will be useful,
!    but WITHOUT ANY WARRANTY; without even the implied warranty of
!    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!    GNU General Public License for more details.
! 
!    You should have received a copy of the GNU General Public License
!    along with this program; if not, write to the Free Software
!    Foundation, Inc., 59 Temple Place - Suite 330,
!    Boston, MA 02111-1307, USA.  */
  
  #ifndef TM_NBSD_H
  #define TM_NBSD_H
***************
*** 25,33 ****
  
  /* Define BPT_VECTOR if it is different than the default.
     This is the vector number used by traps to indicate a breakpoint. */
  
- #define BPT_VECTOR 0x2
- 
  /* Address of end of stack space.  */
  #define STACK_END_ADDR USRSTACK
  
--- 26,34 ----
  
  /* Define BPT_VECTOR if it is different than the default.
     This is the vector number used by traps to indicate a breakpoint. */
+ #define BPT_VECTOR		0xf
+ #define REMOTE_BPT_VECTOR	0xf
  
  /* Address of end of stack space.  */
  #define STACK_END_ADDR USRSTACK
  
***************
*** 37,41 ****
--- 38,46 ----
  
  #include "m68k/tm-m68k.h"
  #include "tm-nbsd.h"
+ 
+ extern use_struct_convention_fn m68knbsd_use_struct_convention;
+ #define USE_STRUCT_CONVENTION(gcc_p, type) \
+         m68knbsd_use_struct_convention(gcc_p, type)
  
  #endif /* TM_NBSD_H */


-- 
J.T. Conklin
RedBack Networks

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