* [PATCH] Some NetBSD shlib cleanup
@ 2002-05-21 21:14 Jason R Thorpe
2002-05-22 8:59 ` Kevin Buettner
0 siblings, 1 reply; 2+ messages in thread
From: Jason R Thorpe @ 2002-05-21 21:14 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 4232 bytes --]
This is the result of fixing a compilation problem on arm-netbsdelf
native (solib-sunos.c can only be built on a native a.out platform).
Along the way, I got annoyed with the tangled mess of SVR4_SHARED_LIBS
and whatnot in the NetBSD nm/tm header files, so I decided they just
had to go.
The patch does:
* Move NetBSD a.out shared library stuff into its own
header file, that target nm-*.h files included as
appropriate.
* Nuke SVR4_SHARED_LIBS from all NetBSD header files.
* For platforms which support a.out and ELF (either now
or in the future), rename the .mt and .mh files to
nbsd{aout,elf}.{mt,mh} as appropriate.
* Reverse the sense of some ELF vs. a.out headers (make the
a.out headers so the extra work, until they're all multi-arch'd).
* Nuke the "common" config/tm-nbsd.h .. it's a.out-specific, and
we push the one define into individual target tm.h files so it's
more obvious when they are multi-arch'd.
..oh, and it fixes the shlib problems for native arm-netbsdelf, too :-)
...the ChangeLog entry looks big, but the change is actually very
simple and straight-forward (and is so big because everything pretty
much had to be changed at once, and the name consistency thing was
mostly to keep me from getting confused in the process).
Committed to trunk.
* Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
nbsd-tdep.h to dependency list.
* configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
nbsdaout.mh and nbsdelf.mh consistently.
* configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
nbsdaout.mt and nbsdelf.mh consistently.
* armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
(arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
* config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
a.out shared library stuff from here...
* config/nm-nbsdaout.h: ...to here.
* config/tm-nbsd.h: Remove.
* config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
* config/arm/nbsd.mh: Remove.
* config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
nbsd-tdep.o.
* config/arm/nbsdaout.mh: New file.
* config/arm/nbsdelf.mh: New file.
* config/arm/nm-nbsdaout.h: New file.
* config/i386/nbsd.mh: Remove.
* config/i386/nbsd.mt: Remove.
* config/i386/nbsdaout.mh: New file.
* config/i386/nbsdaout.mt: New file.
* config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
* config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
* config/i386/nm-nbsd.h (REGISTER_U_ADDR,
i386_register_u_addr): Remove.
* config/i386/nm-nbsdaout.h: New file.
* config/i386/nm-nbsdelf.h: Remove.
* config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
(USE_STRUCT_CONVENTION): Remove.
* config/i386/tm-nbsdaout.h: New file.
* config/i386/tm-nbsdelf.h: Remove.
* config/m68k/nbsd.mh: Remove.
* config/m68k/nbsd.mt: Remove.
* config/m68k/nbsdaout.mh: New file.
* config/m68k/nbsdaout.mt: New file.
* config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
* config/m68k/nm-nbsdaout.h: New file.
* config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
(IN_SOLIB_CALL_TRAMPOLINE): Define.
* config/ns32k/nbsd.mh: Remove.
* config/ns32k/nbsd.mt: Remove.
* config/ns32k/nbsdaout.mh: New file.
* config/ns32k/nbsdaout.mt: New file.
* config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
* config/ns32k/nm-nbsdaout.h: New file.
* config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
(IN_SOLIB_CALL_TRAMPOLINE): Define.
* config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
(SVR4_SHARED_LIBS): Remove.
* config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
* config/sparc/nbsd.mh: Remove.
* config/sparc/nbsd.mt: Remove.
* config/sparc/nbsdaout.mh: New file.
* config/sparc/nbsdaout.mt: New file.
* config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
* config/sparc/nbsdelf.mt: New file.
* config/sparc/nm-nbsdaout.h: New file.
* config/sparc/nm-nbsdelf.h: Remove.
* config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
* config/sparc/tm-nbsdaout.h: New file.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>
[-- Attachment #2: nbsd-patch --]
[-- Type: text/plain, Size: 47246 bytes --]
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.197
diff -c -r1.197 Makefile.in
*** Makefile.in 21 May 2002 21:23:44 -0000 1.197
--- Makefile.in 22 May 2002 03:53:00 -0000
***************
*** 1297,1303 ****
armnbsd-nat.o: armnbsd-nat.c $(defs_h) $(arm_tdep_h) $(inferior_h) \
$(regcache_h) $(gdbcore_h)
! armnbsd-tdep.o: armnbsd-tdep.c $(defs_h) $(arm_tdep_h)
avr-tdep.o: avr-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
$(symfile_h) $(regcache_h) $(arch_utils_h)
--- 1297,1304 ----
armnbsd-nat.o: armnbsd-nat.c $(defs_h) $(arm_tdep_h) $(inferior_h) \
$(regcache_h) $(gdbcore_h)
! armnbsd-tdep.o: armnbsd-tdep.c $(defs_h) $(arm_tdep_h) solib-svr4.h \
! nbsd-tdep.h
avr-tdep.o: avr-tdep.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
$(symfile_h) $(regcache_h) $(arch_utils_h)
Index: armnbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/armnbsd-tdep.c,v
retrieving revision 1.5
diff -c -r1.5 armnbsd-tdep.c
*** armnbsd-tdep.c 21 May 2002 15:36:03 -0000 1.5
--- armnbsd-tdep.c 22 May 2002 03:53:01 -0000
***************
*** 21,26 ****
--- 21,28 ----
#include "defs.h"
#include "arm-tdep.h"
+ #include "nbsd-tdep.h"
+ #include "solib-svr4.h"
/* Description of the longjmp buffer. */
#define JB_PC 24
***************
*** 73,78 ****
--- 75,83 ----
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
arm_netbsd_init_abi_common (info, gdbarch);
+
+ set_solib_svr4_fetch_link_map_offsets (gdbarch,
+ nbsd_ilp32_solib_svr4_fetch_link_map_offsets);
tdep->fp_model = ARM_FLOAT_SOFT_VFP;
}
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.37
diff -c -r1.37 configure.host
*** configure.host 21 May 2002 15:58:40 -0000 1.37
--- configure.host 22 May 2002 03:53:01 -0000
***************
*** 38,44 ****
alpha*-*-netbsd*) gdb_host=nbsd ;;
arm*-*-linux*) gdb_host=linux ;;
! arm*-*-netbsd*) gdb_host=nbsd ;;
arm*-*-*) gdb_host=arm ;;
hppa*-*-bsd*) gdb_host=hppabsd ;;
--- 38,45 ----
alpha*-*-netbsd*) gdb_host=nbsd ;;
arm*-*-linux*) gdb_host=linux ;;
! arm*-*-netbsdelf*) gdb_host=nbsdelf ;;
! arm*-*-netbsd*) gdb_host=nbsdaout ;;
arm*-*-*) gdb_host=arm ;;
hppa*-*-bsd*) gdb_host=hppabsd ;;
***************
*** 58,65 ****
i[3456]86-*-dgux*) gdb_host=i386dgux ;;
i[3456]86-*-freebsd*) gdb_host=fbsd ;;
i[3456]86-*-netbsdelf*) gdb_host=nbsdelf ;;
! i[3456]86-*-netbsdaout*) gdb_host=nbsd ;;
! i[3456]86-*-netbsd*) gdb_host=nbsd ;;
i[3456]86-*-go32*) gdb_host=go32 ;;
i[3456]86-*-msdosdjgpp*) gdb_host=go32 ;;
i[3456]86-*-linux*) gdb_host=linux ;;
--- 59,66 ----
i[3456]86-*-dgux*) gdb_host=i386dgux ;;
i[3456]86-*-freebsd*) gdb_host=fbsd ;;
i[3456]86-*-netbsdelf*) gdb_host=nbsdelf ;;
! i[3456]86-*-netbsdaout*) gdb_host=nbsdaout ;;
! i[3456]86-*-netbsd*) gdb_host=nbsdaout ;;
i[3456]86-*-go32*) gdb_host=go32 ;;
i[3456]86-*-msdosdjgpp*) gdb_host=go32 ;;
i[3456]86-*-linux*) gdb_host=linux ;;
***************
*** 98,104 ****
m68*-hp-hpux*) gdb_host=hp300hpux ;;
m68*-*-linux*) gdb_host=linux ;;
m68*-*-lynxos*) gdb_host=m68klynx ;;
! m68*-*-netbsd*) gdb_host=nbsd ;;
m68*-*-sysv4*) gdb_host=m68kv4 ;;
m68*-motorola-*) gdb_host=delta68 ;;
m68*-sun-sunos3*) gdb_host=sun3os3 ;;
--- 99,105 ----
m68*-hp-hpux*) gdb_host=hp300hpux ;;
m68*-*-linux*) gdb_host=linux ;;
m68*-*-lynxos*) gdb_host=m68klynx ;;
! m68*-*-netbsd*) gdb_host=nbsdaout ;;
m68*-*-sysv4*) gdb_host=m68kv4 ;;
m68*-motorola-*) gdb_host=delta68 ;;
m68*-sun-sunos3*) gdb_host=sun3os3 ;;
***************
*** 126,132 ****
none-*-*) gdb_host=none ;;
! ns32k-*-netbsd*) gdb_host=nbsd ;;
powerpc-*-aix*) gdb_host=aix ;;
powerpc-*-linux*) gdb_host=linux ;;
--- 127,133 ----
none-*-*) gdb_host=none ;;
! ns32k-*-netbsd*) gdb_host=nbsdaout ;;
powerpc-*-aix*) gdb_host=aix ;;
powerpc-*-linux*) gdb_host=linux ;;
***************
*** 143,150 ****
sparc-*-linux*) gdb_host=linux ;;
sparc-*-lynxos*) gdb_host=sparclynx ;;
sparc-*-netbsdelf*) gdb_host=nbsdelf ;;
! sparc-*-netbsdaout*) gdb_host=nbsd ;;
! sparc-*-netbsd*) gdb_host=nbsd ;;
sparc-*-solaris2*) gdb_host=sun4sol2 ;;
sparc-*-sunos4*) gdb_host=sun4os4 ;;
sparc-*-sunos5*) gdb_host=sun4sol2 ;;
--- 144,151 ----
sparc-*-linux*) gdb_host=linux ;;
sparc-*-lynxos*) gdb_host=sparclynx ;;
sparc-*-netbsdelf*) gdb_host=nbsdelf ;;
! sparc-*-netbsdaout*) gdb_host=nbsdaout ;;
! sparc-*-netbsd*) gdb_host=nbsdaout ;;
sparc-*-solaris2*) gdb_host=sun4sol2 ;;
sparc-*-sunos4*) gdb_host=sun4os4 ;;
sparc-*-sunos5*) gdb_host=sun4sol2 ;;
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.66
diff -c -r1.66 configure.tgt
*** configure.tgt 21 May 2002 15:58:40 -0000 1.66
--- configure.tgt 22 May 2002 03:53:01 -0000
***************
*** 93,99 ****
i[3456]86-*-bsd*) gdb_target=i386bsd ;;
i[3456]86-*-freebsd*) gdb_target=fbsd ;;
i[3456]86-*-netbsdelf*) gdb_target=nbsdelf ;;
! i[3456]86-*-netbsd*) gdb_target=nbsd ;;
i[3456]86-*-os9k) gdb_target=i386os9k ;;
i[3456]86-*-go32*) gdb_target=i386aout ;;
i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;;
--- 93,99 ----
i[3456]86-*-bsd*) gdb_target=i386bsd ;;
i[3456]86-*-freebsd*) gdb_target=fbsd ;;
i[3456]86-*-netbsdelf*) gdb_target=nbsdelf ;;
! i[3456]86-*-netbsd*) gdb_target=nbsdaout ;;
i[3456]86-*-os9k) gdb_target=i386os9k ;;
i[3456]86-*-go32*) gdb_target=i386aout ;;
i[3456]86-*-msdosdjgpp*) gdb_target=go32 ;;
***************
*** 157,163 ****
build_gdbserver=yes
;;
m68*-*-lynxos*) gdb_target=m68klynx ;;
! m68*-*-netbsd*) gdb_target=nbsd ;;
m68*-*-os68k*) gdb_target=os68k ;;
m68*-*-sunos3*) gdb_target=sun3os3 ;;
m68*-*-sunos4*) gdb_target=sun3os4 ;;
--- 157,163 ----
build_gdbserver=yes
;;
m68*-*-lynxos*) gdb_target=m68klynx ;;
! m68*-*-netbsd*) gdb_target=nbsdaout ;;
m68*-*-os68k*) gdb_target=os68k ;;
m68*-*-sunos3*) gdb_target=sun3os3 ;;
m68*-*-sunos4*) gdb_target=sun3os4 ;;
***************
*** 213,219 ****
none-*-*) gdb_target=none ;;
! ns32k-*-netbsd*) gdb_target=nbsd ;;
powerpc-*-netbsd*) gdb_target=nbsd ;;
powerpc-*-aix*) gdb_target=aix ;;
--- 213,219 ----
none-*-*) gdb_target=none ;;
! ns32k-*-netbsd*) gdb_target=nbsdaout ;;
powerpc-*-netbsd*) gdb_target=nbsd ;;
powerpc-*-aix*) gdb_target=aix ;;
***************
*** 259,265 ****
sparc-*-elf*) gdb_target=sparc-em ;;
sparc-*-linux*) gdb_target=linux ;;
sparc-*-lynxos*) gdb_target=sparclynx ;;
! sparc-*-netbsd*) gdb_target=nbsd ;;
sparc-*-solaris2*) gdb_target=sun4sol2 ;;
sparc-*-sunos4*) gdb_target=sun4os4 ;;
sparc-*-sunos5*) gdb_target=sun4sol2 ;;
--- 259,266 ----
sparc-*-elf*) gdb_target=sparc-em ;;
sparc-*-linux*) gdb_target=linux ;;
sparc-*-lynxos*) gdb_target=sparclynx ;;
! sparc-*-netbsdelf*) gdb_target=nbsdelf ;;
! sparc-*-netbsd*) gdb_target=nbsdaout ;;
sparc-*-solaris2*) gdb_target=sun4sol2 ;;
sparc-*-sunos4*) gdb_target=sun4os4 ;;
sparc-*-sunos5*) gdb_target=sun4sol2 ;;
Index: config/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/nm-nbsd.h,v
retrieving revision 1.2
diff -c -r1.2 nm-nbsd.h
*** config/nm-nbsd.h 18 Jan 2002 18:14:51 -0000 1.2
--- config/nm-nbsd.h 22 May 2002 03:53:02 -0000
***************
*** 25,87 ****
#define ATTACH_DETACH
#include "solib.h" /* Support for shared libraries. */
- #if defined (SVR4_SHARED_LIBS)
- #include "elf/common.h" /* Additional ELF shared library info. */
- #endif
-
- #if !defined (SVR4_SHARED_LIBS)
-
- /* make structure definitions match up with those expected in solib.c */
- #define link_object sod
- #define lo_name sod_name
- #define lo_library sod_library
- #define lo_unused sod_reserved
- #define lo_major sod_major
- #define lo_minor sod_minor
- #define lo_next sod_next
-
- #define link_map so_map
- #define lm_addr som_addr
- #define lm_name som_path
- #define lm_next som_next
- #define lm_lop som_sod
- #define lm_lob som_sodbase
- #define lm_rwt som_write
- #define lm_ld som_dynamic
- #define lm_lpd som_spd
-
- #define link_dynamic_2 section_dispatch_table
- #define ld_loaded sdt_loaded
- #define ld_need sdt_sods
- #define ld_rules sdt_filler1
- #define ld_got sdt_got
- #define ld_plt sdt_plt
- #define ld_rel sdt_rel
- #define ld_hash sdt_hash
- #define ld_stab sdt_nzlist
- #define ld_stab_hash sdt_filler2
- #define ld_buckets sdt_buckets
- #define ld_symbols sdt_strings
- #define ld_symb_size sdt_str_sz
- #define ld_text sdt_text_sz
- #define ld_plt_sz sdt_plt_sz
-
- #define rtc_symb rt_symbol
- #define rtc_sp rt_sp
- #define rtc_next rt_next
-
- #define ld_debug so_debug
- #define ldd_version dd_version
- #define ldd_in_debugger dd_in_debugger
- #define ldd_sym_loaded dd_sym_loaded
- #define ldd_bp_addr dd_bpt_addr
- #define ldd_bp_inst dd_bpt_shadow
- #define ldd_cp dd_cc
-
- #define link_dynamic _dynamic
- #define ld_version d_version
- #define ldd d_debug
- #define ld_un d_un
- #define ld_2 d_sdt
-
- #endif
--- 25,27 ----
Index: config/nm-nbsdaout.h
===================================================================
RCS file: config/nm-nbsdaout.h
diff -N config/nm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/nm-nbsdaout.h 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,72 ----
+ /* Native-dependent definitions for NetBSD a.out.
+ Copyright 1994, 1996, 1999 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. */
+
+ /* make structure definitions match up with those expected in solib.c */
+ #define link_object sod
+ #define lo_name sod_name
+ #define lo_library sod_library
+ #define lo_unused sod_reserved
+ #define lo_major sod_major
+ #define lo_minor sod_minor
+ #define lo_next sod_next
+
+ #define link_map so_map
+ #define lm_addr som_addr
+ #define lm_name som_path
+ #define lm_next som_next
+ #define lm_lop som_sod
+ #define lm_lob som_sodbase
+ #define lm_rwt som_write
+ #define lm_ld som_dynamic
+ #define lm_lpd som_spd
+
+ #define link_dynamic_2 section_dispatch_table
+ #define ld_loaded sdt_loaded
+ #define ld_need sdt_sods
+ #define ld_rules sdt_filler1
+ #define ld_got sdt_got
+ #define ld_plt sdt_plt
+ #define ld_rel sdt_rel
+ #define ld_hash sdt_hash
+ #define ld_stab sdt_nzlist
+ #define ld_stab_hash sdt_filler2
+ #define ld_buckets sdt_buckets
+ #define ld_symbols sdt_strings
+ #define ld_symb_size sdt_str_sz
+ #define ld_text sdt_text_sz
+ #define ld_plt_sz sdt_plt_sz
+
+ #define rtc_symb rt_symbol
+ #define rtc_sp rt_sp
+ #define rtc_next rt_next
+
+ #define ld_debug so_debug
+ #define ldd_version dd_version
+ #define ldd_in_debugger dd_in_debugger
+ #define ldd_sym_loaded dd_sym_loaded
+ #define ldd_bp_addr dd_bpt_addr
+ #define ldd_bp_inst dd_bpt_shadow
+ #define ldd_cp dd_cc
+
+ #define link_dynamic _dynamic
+ #define ld_version d_version
+ #define ldd d_debug
+ #define ld_un d_un
+ #define ld_2 d_sdt
Index: config/tm-nbsd.h
===================================================================
RCS file: config/tm-nbsd.h
diff -N config/tm-nbsd.h
*** config/tm-nbsd.h 22 Mar 2000 01:36:31 -0000 1.2
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,29 ****
- /* Target machine sub-description for NetBSD.
- This is included by other tm-*.h files to specify NetBSD-specific stuff.
- Copyright 1993, 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 SVR4_SHARED_LIBS
-
- /* Return non-zero if we are in a shared library trampoline code stub. */
-
- #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
- (name && !strcmp(name, "_DYNAMIC"))
-
- #endif /* !SVR4_SHARED_LIBS */
--- 0 ----
Index: config/alpha/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/nm-nbsd.h,v
retrieving revision 1.2
diff -c -r1.2 nm-nbsd.h
*** config/alpha/nm-nbsd.h 26 Apr 2002 01:22:41 -0000 1.2
--- config/alpha/nm-nbsd.h 22 May 2002 03:53:02 -0000
***************
*** 22,29 ****
#ifndef NM_NBSD_H
#define NM_NBSD_H
- #define SVR4_SHARED_LIBS
-
/* Get generic NetBSD native definitions. */
#include "config/nm-nbsd.h"
--- 22,27 ----
Index: config/arm/nbsd.mh
===================================================================
RCS file: config/arm/nbsd.mh
diff -N config/arm/nbsd.mh
*** config/arm/nbsd.mh 18 Jan 2002 04:50:58 -0000 1.4
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,4 ****
- # Host ARM running NetBSD
- NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o armnbsd-nat.o
- XM_FILE=xm-nbsd.h
- NAT_FILE=nm-nbsd.h
--- 0 ----
Index: config/arm/nbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/nbsd.mt,v
retrieving revision 1.4
diff -c -r1.4 nbsd.mt
*** config/arm/nbsd.mt 19 Feb 2002 14:04:47 -0000 1.4
--- config/arm/nbsd.mt 22 May 2002 03:53:02 -0000
***************
*** 1,2 ****
# Target: ARM running NetBSD
! TDEPFILES= arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o solib-sunos.o
--- 1,2 ----
# Target: ARM running NetBSD
! TDEPFILES= arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o nbsd-tdep.o
Index: config/arm/nbsdaout.mh
===================================================================
RCS file: config/arm/nbsdaout.mh
diff -N config/arm/nbsdaout.mh
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/arm/nbsdaout.mh 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,5 ----
+ # Host ARM running NetBSD
+ NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o armnbsd-nat.o \
+ solib-sunos.o
+ XM_FILE=xm-nbsd.h
+ NAT_FILE=nm-nbsdaout.h
Index: config/arm/nbsdelf.mh
===================================================================
RCS file: config/arm/nbsdelf.mh
diff -N config/arm/nbsdelf.mh
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/arm/nbsdelf.mh 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,4 ----
+ # Host ARM running NetBSD
+ NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o armnbsd-nat.o
+ XM_FILE=xm-nbsd.h
+ NAT_FILE=nm-nbsd.h
Index: config/arm/nm-nbsdaout.h
===================================================================
RCS file: config/arm/nm-nbsdaout.h
diff -N config/arm/nm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/arm/nm-nbsdaout.h 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,29 ----
+ /* Native-dependent definitions for ARM running NetBSD, for GDB.
+ Copyright 1986, 1987, 1989, 1992, 1994, 1999 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 NM_NBSDAOUT_H
+ #define NM_NBSDAOUT_H
+
+ #include "arm/nm-nbsd.h"
+
+ /* Get generic NetBSD a.out native definitions. */
+ #include "config/nm-nbsdaout.h"
+
+ #endif /* NM_NBSDAOUT_H */
Index: config/i386/nbsd.mh
===================================================================
RCS file: config/i386/nbsd.mh
diff -N config/i386/nbsd.mh
*** config/i386/nbsd.mh 11 May 2002 21:46:17 -0000 1.16
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,6 ****
- # Host: Intel 386 running NetBSD
- NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o \
- solib.o solib-sunos.o
-
- XM_FILE= xm-nbsd.h
- NAT_FILE= nm-nbsd.h
--- 0 ----
Index: config/i386/nbsd.mt
===================================================================
RCS file: config/i386/nbsd.mt
diff -N config/i386/nbsd.mt
*** config/i386/nbsd.mt 11 May 2002 21:46:17 -0000 1.10
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,3 ****
- # Target: Intel 386 running NetBSD
- TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o corelow.o
- TM_FILE= tm-nbsd.h
--- 0 ----
Index: config/i386/nbsdaout.mh
===================================================================
RCS file: config/i386/nbsdaout.mh
diff -N config/i386/nbsdaout.mh
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/i386/nbsdaout.mh 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,6 ----
+ # Host: Intel 386 running NetBSD
+ NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o \
+ solib.o solib-sunos.o
+
+ XM_FILE= xm-nbsd.h
+ NAT_FILE= nm-nbsdaout.h
Index: config/i386/nbsdaout.mt
===================================================================
RCS file: config/i386/nbsdaout.mt
diff -N config/i386/nbsdaout.mt
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/i386/nbsdaout.mt 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,3 ----
+ # Target: Intel 386 running NetBSD
+ TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o corelow.o
+ TM_FILE= tm-nbsdaout.h
Index: config/i386/nbsdelf.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsdelf.mh,v
retrieving revision 1.12
diff -c -r1.12 nbsdelf.mh
*** config/i386/nbsdelf.mh 11 May 2002 21:46:17 -0000 1.12
--- config/i386/nbsdelf.mh 22 May 2002 03:53:02 -0000
***************
*** 2,5 ****
NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o \
solib.o solib-svr4.o solib-legacy.o
XM_FILE= xm-nbsd.h
! NAT_FILE= nm-nbsdelf.h
--- 2,5 ----
NATDEPFILES= fork-child.o infptrace.o inftarg.o i386bsd-nat.o \
solib.o solib-svr4.o solib-legacy.o
XM_FILE= xm-nbsd.h
! NAT_FILE= nm-nbsd.h
Index: config/i386/nbsdelf.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nbsdelf.mt,v
retrieving revision 1.8
diff -c -r1.8 nbsdelf.mt
*** config/i386/nbsdelf.mt 11 May 2002 21:46:17 -0000 1.8
--- config/i386/nbsdelf.mt 22 May 2002 03:53:02 -0000
***************
*** 1,3 ****
# Target: Intel 386 running NetBSD
TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o corelow.o
! TM_FILE= tm-nbsdelf.h
--- 1,3 ----
# Target: Intel 386 running NetBSD
TDEPFILES= i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o corelow.o
! TM_FILE= tm-nbsd.h
Index: config/i386/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-nbsd.h,v
retrieving revision 1.5
diff -c -r1.5 nm-nbsd.h
*** config/i386/nm-nbsd.h 6 Mar 2001 08:21:28 -0000 1.5
--- config/i386/nm-nbsd.h 22 May 2002 03:53:02 -0000
***************
*** 1,5 ****
/* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
! Copyright 1986, 1987, 1989, 1992, 1994, 1996, 2000
Free Software Foundation, Inc.
This file is part of GDB.
--- 1,5 ----
/* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
! Copyright 1986, 1987, 1989, 1992, 1994, 2000, 2002
Free Software Foundation, Inc.
This file is part of GDB.
***************
*** 24,33 ****
/* Get generic NetBSD native definitions. */
#include "config/nm-nbsd.h"
-
- #define REGISTER_U_ADDR(addr, blockend, regno) \
- (addr) = i386_register_u_addr ((blockend),(regno));
-
- extern int i386_register_u_addr (int, int);
#endif /* NM_NBSD_H */
--- 24,28 ----
Index: config/i386/nm-nbsdaout.h
===================================================================
RCS file: config/i386/nm-nbsdaout.h
diff -N config/i386/nm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/i386/nm-nbsdaout.h 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,30 ----
+ /* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
+ Copyright 1986, 1987, 1989, 1992, 1994, 1996, 2000
+ 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 NM_NBSDAOUT_H
+ #define NM_NBSDAOUT_H
+
+ #include "i386/nm-nbsd.h"
+
+ /* Get generic NetBSD a.out native definitions. */
+ #include "config/nm-nbsdaout.h"
+
+ #endif /* NM_NBSDAOUT_H */
Index: config/i386/nm-nbsdelf.h
===================================================================
RCS file: config/i386/nm-nbsdelf.h
diff -N config/i386/nm-nbsdelf.h
*** config/i386/nm-nbsdelf.h 6 Mar 2001 08:21:28 -0000 1.2
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,28 ****
- /* Native-dependent definitions for Intel 386 running NetBSD, for GDB.
- Copyright 1986, 1987, 1989, 1992, 1994, 2000
- 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 NM_NBSDELF_H
- #define NM_NBSDELF_H
-
- #define SVR4_SHARED_LIBS
- #include "i386/nm-nbsd.h"
-
- #endif /* NM_NBSDELF_H */
--- 0 ----
Index: config/i386/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-nbsd.h,v
retrieving revision 1.9
diff -c -r1.9 tm-nbsd.h
*** config/i386/tm-nbsd.h 11 May 2002 21:22:51 -0000 1.9
--- config/i386/tm-nbsd.h 22 May 2002 03:53:02 -0000
***************
*** 25,36 ****
#define HAVE_SSE_REGS
#include "i386/tm-i386.h"
- #include "config/tm-nbsd.h"
-
- extern use_struct_convention_fn i386nbsd_aout_use_struct_convention;
- #define USE_STRUCT_CONVENTION(gcc_p, type) \
- i386nbsd_aout_use_struct_convention(gcc_p, type)
-
#define JB_ELEMENT_SIZE sizeof(int) /* jmp_buf[_JBLEN] is array of ints */
#define JB_PC 0 /* Setjmp()'s return PC saved here */
--- 25,30 ----
Index: config/i386/tm-nbsdaout.h
===================================================================
RCS file: config/i386/tm-nbsdaout.h
diff -N config/i386/tm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/i386/tm-nbsdaout.h 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,34 ----
+ /* Macro definitions for i386 running under NetBSD.
+ Copyright 2000, 2002 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_NBSDAOUT_H
+ #define TM_NBSDAOUT_H
+
+ #include "i386/tm-nbsd.h"
+
+ /* Return non-zero if we are in a shared library trampoline code stub. */
+ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
+ (name && !strcmp(name, "_DYNAMIC"))
+
+ extern use_struct_convention_fn i386nbsd_aout_use_struct_convention;
+ #define USE_STRUCT_CONVENTION(gcc_p, type) \
+ i386nbsd_aout_use_struct_convention(gcc_p, type)
+
+ #endif /* TM_NBSDAOUT_H */
Index: config/i386/tm-nbsdelf.h
===================================================================
RCS file: config/i386/tm-nbsdelf.h
diff -N config/i386/tm-nbsdelf.h
*** config/i386/tm-nbsdelf.h 2 Jun 2000 23:15:28 -0000 1.1
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,28 ****
- /* Macro definitions for i386 running under NetBSD.
- Copyright 2000 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_NBSDELF_H
- #define TM_NBSDELF_H
-
- #include "i386/tm-nbsd.h"
-
- #undef USE_STRUCT_CONVENTION
-
- #endif /* TM_NBSD_H */
--- 0 ----
Index: config/m68k/nbsd.mh
===================================================================
RCS file: config/m68k/nbsd.mh
diff -N config/m68k/nbsd.mh
*** config/m68k/nbsd.mh 11 May 2002 21:38:13 -0000 1.10
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,5 ****
- # Host: Motorola m68k running NetBSD
- NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o m68knbsd-nat.o \
- solib.o solib-sunos.o
- XM_FILE= xm-nbsd.h
- NAT_FILE= nm-nbsd.h
--- 0 ----
Index: config/m68k/nbsd.mt
===================================================================
RCS file: config/m68k/nbsd.mt
diff -N config/m68k/nbsd.mt
*** config/m68k/nbsd.mt 4 May 2002 15:52:40 -0000 1.8
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,3 ****
- # Target: Motorola m68k running NetBSD
- TDEPFILES= m68k-tdep.o m68knbsd-tdep.o
- TM_FILE= tm-nbsd.h
--- 0 ----
Index: config/m68k/nbsdaout.mh
===================================================================
RCS file: config/m68k/nbsdaout.mh
diff -N config/m68k/nbsdaout.mh
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/m68k/nbsdaout.mh 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,5 ----
+ # Host: Motorola m68k running NetBSD
+ NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o m68knbsd-nat.o \
+ solib.o solib-sunos.o
+ XM_FILE= xm-nbsd.h
+ NAT_FILE= nm-nbsdaout.h
Index: config/m68k/nbsdaout.mt
===================================================================
RCS file: config/m68k/nbsdaout.mt
diff -N config/m68k/nbsdaout.mt
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/m68k/nbsdaout.mt 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,3 ----
+ # Target: Motorola m68k running NetBSD
+ TDEPFILES= m68k-tdep.o m68knbsd-tdep.o
+ TM_FILE= tm-nbsd.h
Index: config/m68k/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/nm-nbsd.h,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 nm-nbsd.h
*** config/m68k/nm-nbsd.h 7 Jul 1999 20:14:06 -0000 1.1.1.2
--- config/m68k/nm-nbsd.h 22 May 2002 03:53:02 -0000
***************
*** 18,22 ****
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* Get generic NetBSD native definitions. */
! #include "nm-nbsd.h"
--- 18,27 ----
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+ #ifndef NM_NBSD_H
+ #define NM_NBSD_H
+
/* Get generic NetBSD native definitions. */
! #include "config/nm-nbsd.h"
!
! #endif /* NM_NBSD_H */
Index: config/m68k/nm-nbsdaout.h
===================================================================
RCS file: config/m68k/nm-nbsdaout.h
diff -N config/m68k/nm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/m68k/nm-nbsdaout.h 22 May 2002 03:53:02 -0000
***************
*** 0 ****
--- 1,29 ----
+ /* Native-dependent definitions for Motorola m68k running NetBSD, for GDB.
+ Copyright 1996, 2002 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 NM_NBSDAOUT_H
+ #define NM_NBSDAOUT_H
+
+ #include "m68k/nm-nbsd.h"
+
+ /* Get generic NetBSD a.out native definitions. */
+ #include "config/nm-nbsdaout.h"
+
+ #endif /* NM_NBSDAOUT_H */
Index: config/m68k/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-nbsd.h,v
retrieving revision 1.4
diff -c -r1.4 tm-nbsd.h
*** config/m68k/tm-nbsd.h 2 May 2002 13:47:17 -0000 1.4
--- config/m68k/tm-nbsd.h 22 May 2002 03:53:02 -0000
***************
*** 37,43 ****
#define SIGTRAMP_END(pc) (STACK_END_ADDR)
#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) \
--- 37,46 ----
#define SIGTRAMP_END(pc) (STACK_END_ADDR)
#include "m68k/tm-m68k.h"
!
! /* Return non-zero if we are in a shared library trampoline code stub. */
! #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
! (name && !strcmp(name, "_DYNAMIC"))
extern use_struct_convention_fn m68knbsd_use_struct_convention;
#define USE_STRUCT_CONVENTION(gcc_p, type) \
Index: config/ns32k/nbsd.mh
===================================================================
RCS file: config/ns32k/nbsd.mh
diff -N config/ns32k/nbsd.mh
*** config/ns32k/nbsd.mh 11 May 2002 21:38:14 -0000 1.10
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,5 ****
- # Host: PC532 running NetBSD
- NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o ns32knbsd-nat.o \
- solib.o solib-sunos.o
- XM_FILE= xm-nbsd.h
- NAT_FILE= nm-nbsd.h
--- 0 ----
Index: config/ns32k/nbsd.mt
===================================================================
RCS file: config/ns32k/nbsd.mt
diff -N config/ns32k/nbsd.mt
*** config/ns32k/nbsd.mt 4 May 2002 15:52:41 -0000 1.7
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,3 ****
- # Target: PC532 running NetBSD
- TDEPFILES= ns32k-tdep.o
- TM_FILE= tm-nbsd.h
--- 0 ----
Index: config/ns32k/nbsdaout.mh
===================================================================
RCS file: config/ns32k/nbsdaout.mh
diff -N config/ns32k/nbsdaout.mh
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/ns32k/nbsdaout.mh 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,5 ----
+ # Host: PC532 running NetBSD
+ NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o ns32knbsd-nat.o \
+ solib.o solib-sunos.o
+ XM_FILE= xm-nbsd.h
+ NAT_FILE= nm-nbsdaout.h
Index: config/ns32k/nbsdaout.mt
===================================================================
RCS file: config/ns32k/nbsdaout.mt
diff -N config/ns32k/nbsdaout.mt
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/ns32k/nbsdaout.mt 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,3 ----
+ # Target: PC532 running NetBSD
+ TDEPFILES= ns32k-tdep.o
+ TM_FILE= tm-nbsd.h
Index: config/ns32k/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ns32k/nm-nbsd.h,v
retrieving revision 1.3
diff -c -r1.3 nm-nbsd.h
*** config/ns32k/nm-nbsd.h 6 Mar 2001 08:21:33 -0000 1.3
--- config/ns32k/nm-nbsd.h 22 May 2002 03:53:03 -0000
***************
*** 23,29 ****
#define NM_NBSD_H
/* Get generic NetBSD native definitions. */
! #include "nm-nbsd.h"
#if 0
#define FLOAT_INFO { extern ns32k_float_info(); ns32k_float_info(); }
--- 23,29 ----
#define NM_NBSD_H
/* Get generic NetBSD native definitions. */
! #include "config/nm-nbsd.h"
#if 0
#define FLOAT_INFO { extern ns32k_float_info(); ns32k_float_info(); }
Index: config/ns32k/nm-nbsdaout.h
===================================================================
RCS file: config/ns32k/nm-nbsdaout.h
diff -N config/ns32k/nm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/ns32k/nm-nbsdaout.h 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,30 ----
+ /* Native-dependent definitions for ns32k running NetBSD, for GDB.
+ Copyright 1986, 1987, 1989, 1992, 1994, 2000, 2002
+ 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 NM_NBSDAOUT_H
+ #define NM_NBSDAOUT_H
+
+ #include "ns32k/nm-nbsd.h"
+
+ /* Get generic NetBSD native definitions. */
+ #include "config/nm-nbsdaout.h"
+
+ #endif /* NM_NBSDAOUT_H */
Index: config/ns32k/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ns32k/tm-nbsd.h,v
retrieving revision 1.2
diff -c -r1.2 tm-nbsd.h
*** config/ns32k/tm-nbsd.h 6 Mar 2001 08:21:33 -0000 1.2
--- config/ns32k/tm-nbsd.h 22 May 2002 03:53:03 -0000
***************
*** 19,24 ****
--- 19,27 ----
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+ #ifndef TM_NBSD_H
+ #define TM_NBSD_H
+
/* Override number of expected traps from sysv. */
#define START_INFERIOR_TRAPS_EXPECTED 2
***************
*** 26,34 ****
#include "ns32k/tm-umax.h"
! /* Generic NetBSD definitions. */
!
! #include "tm-nbsd.h"
/* Saved Pc. Get it from sigcontext if within sigtramp. */
--- 29,37 ----
#include "ns32k/tm-umax.h"
! /* Return non-zero if we are in a shared library trampoline code stub. */
! #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
! (name && !strcmp(name, "_DYNAMIC"))
/* Saved Pc. Get it from sigcontext if within sigtramp. */
***************
*** 78,80 ****
--- 81,85 ----
#define REGISTER_BYTE(N) (((N) < LP0_REGNUM? (N)\
: ((N) - LP0_REGNUM) & 1? (N) - 1 \
: ((N) - LP0_REGNUM + FP0_REGNUM)) * 4)
+
+ #endif /* TM_NBSD_H */
Index: config/powerpc/nm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/nm-nbsd.h,v
retrieving revision 1.2
diff -c -r1.2 nm-nbsd.h
*** config/powerpc/nm-nbsd.h 6 Mar 2001 08:21:34 -0000 1.2
--- config/powerpc/nm-nbsd.h 22 May 2002 03:53:03 -0000
***************
*** 1,5 ****
/* Native-dependent definitions for PowerPC running NetBSD ELF, for GDB.
! Copyright 2000 Free Software Foundation, Inc.
This file is part of GDB.
--- 1,5 ----
/* Native-dependent definitions for PowerPC running NetBSD ELF, for GDB.
! Copyright 2000, 2002 Free Software Foundation, Inc.
This file is part of GDB.
***************
*** 21,29 ****
#ifndef NM_NBSD_H
#define NM_NBSD_H
- #define SVR4_SHARED_LIBS
-
/* Get generic NetBSD native definitions. */
! #include "nm-nbsd.h"
#endif
--- 21,27 ----
#ifndef NM_NBSD_H
#define NM_NBSD_H
/* Get generic NetBSD native definitions. */
! #include "config/nm-nbsd.h"
#endif
Index: config/powerpc/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/tm-nbsd.h,v
retrieving revision 1.1
diff -c -r1.1 tm-nbsd.h
*** config/powerpc/tm-nbsd.h 18 May 2000 23:43:58 -0000 1.1
--- config/powerpc/tm-nbsd.h 22 May 2002 03:53:03 -0000
***************
*** 22,27 ****
#define TM_NBSD_H
#include "powerpc/tm-ppc-eabi.h"
- #include "tm-nbsd.h"
#endif /* TM_NBSD_H */
--- 22,26 ----
Index: config/sparc/nbsd.mh
===================================================================
RCS file: config/sparc/nbsd.mh
diff -N config/sparc/nbsd.mh
*** config/sparc/nbsd.mh 11 May 2002 21:38:14 -0000 1.9
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,6 ****
- # Host: Sun 4 or Sparcstation, running NetBSD
- NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o \
- solib.o solib-sunos.o
- XM_FILE= xm-nbsd.h
- NAT_FILE= nm-nbsd.h
- HOST_IPC=-DBSD_IPC
--- 0 ----
Index: config/sparc/nbsd.mt
===================================================================
RCS file: config/sparc/nbsd.mt
diff -N config/sparc/nbsd.mt
*** config/sparc/nbsd.mt 22 Jan 2001 20:23:25 -0000 1.3
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,3 ****
- # Target: Sun 4 or Sparcstation, running NetBSD
- TDEPFILES= sparc-tdep.o
- TM_FILE= tm-nbsd.h
--- 0 ----
Index: config/sparc/nbsdaout.mh
===================================================================
RCS file: config/sparc/nbsdaout.mh
diff -N config/sparc/nbsdaout.mh
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/sparc/nbsdaout.mh 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,6 ----
+ # Host: Sun 4 or Sparcstation, running NetBSD
+ NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o \
+ solib.o solib-sunos.o
+ XM_FILE= xm-nbsd.h
+ NAT_FILE= nm-nbsdaout.h
+ HOST_IPC=-DBSD_IPC
Index: config/sparc/nbsdaout.mt
===================================================================
RCS file: config/sparc/nbsdaout.mt
diff -N config/sparc/nbsdaout.mt
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/sparc/nbsdaout.mt 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,3 ----
+ # Target: Sun 4 or Sparcstation, running NetBSD
+ TDEPFILES= sparc-tdep.o
+ TM_FILE= tm-nbsdaout.h
Index: config/sparc/nbsdelf.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/nbsdelf.mh,v
retrieving revision 1.8
diff -c -r1.8 nbsdelf.mh
*** config/sparc/nbsdelf.mh 11 May 2002 21:38:14 -0000 1.8
--- config/sparc/nbsdelf.mh 22 May 2002 03:53:03 -0000
***************
*** 2,6 ****
NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o \
solib.o solib-svr4.o solib-legacy.o
XM_FILE= xm-nbsd.h
! NAT_FILE= nm-nbsdelf.h
HOST_IPC=-DBSD_IPC
--- 2,6 ----
NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o \
solib.o solib-svr4.o solib-legacy.o
XM_FILE= xm-nbsd.h
! NAT_FILE= nm-nbsd.h
HOST_IPC=-DBSD_IPC
Index: config/sparc/nbsdelf.mt
===================================================================
RCS file: config/sparc/nbsdelf.mt
diff -N config/sparc/nbsdelf.mt
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/sparc/nbsdelf.mt 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,3 ----
+ # Target: Sun 4 or Sparcstation, running NetBSD
+ TDEPFILES= sparc-tdep.o
+ TM_FILE= tm-nbsd.h
Index: config/sparc/nm-nbsdaout.h
===================================================================
RCS file: config/sparc/nm-nbsdaout.h
diff -N config/sparc/nm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/sparc/nm-nbsdaout.h 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,30 ----
+ /* Native-dependent definitions for Sparc running NetBSD a.out, for GDB.
+ Copyright 1999 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 NM_NBSDAOUT_H
+ #define NM_NBSDAOUT_H
+
+ #include "sparc/nm-nbsd.h"
+
+ /* Get generic NetBSD a.out native definitions. */
+
+ #include "config/nm-nbsdaout.h"
+
+ #endif /* NM_NBSDAOUT_H */
Index: config/sparc/nm-nbsdelf.h
===================================================================
RCS file: config/sparc/nm-nbsdelf.h
diff -N config/sparc/nm-nbsdelf.h
*** config/sparc/nm-nbsdelf.h 6 Mar 2001 08:21:36 -0000 1.2
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,27 ****
- /* Native-dependent definitions for Sparc running NetBSD ELF, for GDB.
- Copyright 1999 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 NM_NBSDELF_H
- #define NM_NBSDELF_H
-
- #define SVR4_SHARED_LIBS
- #include "sparc/nm-nbsd.h"
-
- #endif
--- 0 ----
Index: config/sparc/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-nbsd.h,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 tm-nbsd.h
*** config/sparc/tm-nbsd.h 7 Jul 1999 20:17:07 -0000 1.1.1.2
--- config/sparc/tm-nbsd.h 22 May 2002 03:53:03 -0000
***************
*** 23,28 ****
#include "sparc/tm-sparc.h"
- #include "tm-nbsd.h"
-
#endif /* TM_NBSD_H */
--- 23,26 ----
Index: config/sparc/tm-nbsdaout.h
===================================================================
RCS file: config/sparc/tm-nbsdaout.h
diff -N config/sparc/tm-nbsdaout.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/sparc/tm-nbsdaout.h 22 May 2002 03:53:03 -0000
***************
*** 0 ****
--- 1,30 ----
+ /* Macro definitions for Sparc running under NetBSD.
+ Copyright 1994, 2002 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_NBSDAOUT_H
+ #define TM_NBSDAOUT_H
+
+ #include "sparc/tm-nbsd.h"
+
+ /* Return non-zero if we are in a shared library trampoline code stub. */
+ #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
+ (name && !strcmp(name, "_DYNAMIC"))
+
+ #endif /* TM_NBSDAOUT_H */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-22 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-21 21:14 [PATCH] Some NetBSD shlib cleanup Jason R Thorpe
2002-05-22 8:59 ` Kevin Buettner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox