home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gdb / bug / 1340 < prev    next >
Encoding:
Text File  |  1993-01-03  |  14.8 KB  |  475 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!eab.retix.COM!erik
  3. From: erik@eab.retix.COM (Erik Forsberg)
  4. Subject: (none)
  5. Message-ID: <9301030544.AA10884@eab.retix.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sat, 2 Jan 1993 13:44:38 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 462
  12.  
  13. Hello.
  14.  
  15. These are changes to GDB 4.7 in order to support it for
  16. BSD/386 from BSDI. Unfortunately, because BSDI uses a new
  17. a.out format (magic number 0314) it is kind of difficult to
  18. merge it into the 386BSD support without pain. So these
  19. changes adds the configuration option 'i386-unknown-bsdi'
  20.  
  21. First are a set of context diffs, followed by a set of
  22. new files in a shell archive.
  23.  
  24. diff -c -r gdb-4.7/bfd/Makefile.in gdb/bfd/Makefile.in
  25. *** gdb-4.7/bfd/Makefile.in    Fri Oct  9 09:43:48 1992
  26. --- gdb/bfd/Makefile.in    Sat Jan  2 15:06:49 1993
  27. ***************
  28. *** 81,87 ****
  29.       aout-adobe.o \
  30.       coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
  31.       coff-mips.o coff-rs6000.o coff-h8300.o coff-msym.o hppa.o i386linux.o \
  32. !     coff-z8k.o coff-we32k.o i386bsd.o
  33.   
  34.   OPTIONAL_BACKENDS = trad-core.o
  35.   
  36. --- 81,87 ----
  37.       aout-adobe.o \
  38.       coff-i960.o coff-a29k.o coff-m68k.o coff-i386.o coff-m88k.o \
  39.       coff-mips.o coff-rs6000.o coff-h8300.o coff-msym.o hppa.o i386linux.o \
  40. !     coff-z8k.o coff-we32k.o i386bsd.o i386bsdi.o
  41.   
  42.   OPTIONAL_BACKENDS = trad-core.o
  43.   
  44. ***************
  45. *** 112,118 ****
  46.        oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c coff-msym.c \
  47.        format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c \
  48.        seclet.c coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c \
  49. !      i386linux.c bout.c elf.c aout-adobe.c coff-we32k.c i386bsd.c \
  50.        cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c cpu-vax.c \
  51.        cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c hppa.c \
  52.        cpu-hppa.c cpu-we32k.c
  53. --- 112,118 ----
  54.        oasys.c ieee.c coff-m68k.c coff-a29k.c coff-rs6000.c coff-msym.c \
  55.        format.c section.c core.c syms.c stab-syms.c reloc.c init.c ctor.c \
  56.        seclet.c coff-m88k.c coff-mips.c trad-core.c newsos3.c i386aout.c \
  57. !      i386linux.c bout.c elf.c aout-adobe.c coff-we32k.c i386bsd.c i386bsdi.c \
  58.        cpu-h8300.c cpu-i960.c cpu-sparc.c cpu-m68k.c cpu-m88k.c cpu-vax.c \
  59.        cpu-mips.c cpu-a29k.c cpu-i386.c cpu-rs6000.c coff-h8300.c hppa.c \
  60.        cpu-hppa.c cpu-we32k.c
  61. ***************
  62. *** 365,370 ****
  63. --- 365,373 ----
  64.     $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  65.     $(INCDIR)/aout/ar.h libaout.h
  66.   i386bsd.o : i386bsd.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  67. +   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  68. +   $(INCDIR)/aout/ar.h libaout.h 
  69. + i386bsdi.o : i386bsdi.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  70.     $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
  71.     $(INCDIR)/aout/ar.h libaout.h 
  72.   bout.o : bout.c $(INCDIR)/bfd.h $(INCDIR)/obstack.h libbfd.h \
  73. Only in gdb/bfd/config: i386-bsdi.mt
  74. Only in gdb/bfd/config: i386bsdi.mh
  75. diff -c -r gdb-4.7/bfd/configure.host gdb/bfd/configure.host
  76. *** gdb-4.7/bfd/configure.host    Fri Oct  9 04:38:25 1992
  77. --- gdb/bfd/configure.host    Sat Jan  2 14:57:11 1993
  78. ***************
  79. *** 22,27 ****
  80. --- 22,28 ----
  81.   hppa*-hp-hpux)        my_host=hppahpux ;;
  82.   hppa*-hp-bsd)        my_host=hppabsd ;;
  83.   
  84. + i[34]86-*-bsdi)        my_host=i386bsdi ;;
  85.   i[34]86-*-bsd)        my_host=i386bsd ;;
  86.   i[34]86-ncr*-sysv4*)    my_host=ncr3000 ;;
  87.   i[34]86-*-go32)        my_host=go32 ;;
  88. diff -c -r gdb-4.7/bfd/configure.in gdb/bfd/configure.in
  89. *** gdb-4.7/bfd/configure.in    Fri Oct 23 01:39:13 1992
  90. --- gdb/bfd/configure.in    Sat Jan  2 15:42:18 1993
  91. ***************
  92. *** 48,53 ****
  93. --- 48,54 ----
  94.     i[34]86-*-sysv4*)    bfd_target=i386-elf ;;
  95.     i[34]86-*-sysv*)    bfd_target=i386-coff ;;
  96.     i[34]86-*-sco*)    bfd_target=i386-coff ;;
  97. +   i[34]86-*-bsdi*)    bfd_target=i386-bsdi ;;
  98.     i[34]86-*-bsd*)    bfd_target=i386-bsd ;;
  99.     i[34]86-none-*)    bfd_target=i386-coff ;;
  100.     i960-*-vxworks)    bfd_target=i960-bout ;;
  101. Only in gdb/bfd/hosts: i386bsdi.h
  102. Only in gdb/bfd: i386bsdi.c
  103. diff -c -r gdb-4.7/bfd/targets.c gdb/bfd/targets.c
  104. *** gdb-4.7/bfd/targets.c    Thu Oct  8 13:18:08 1992
  105. --- gdb/bfd/targets.c    Sat Jan  2 15:09:49 1993
  106. ***************
  107. *** 398,403 ****
  108. --- 398,404 ----
  109.   extern bfd_target i386coff_vec;
  110.   extern bfd_target i386aout_vec;
  111.   extern bfd_target i386linux_vec;
  112. + extern bfd_target i386bsdi_vec;
  113.   extern bfd_target a29kcoff_big_vec;
  114.   extern bfd_target trad_core_vec;
  115.   extern bfd_target rs6000coff_vec;
  116. diff -c -r gdb-4.7/bfd/trad-core.c gdb/bfd/trad-core.c
  117. *** gdb-4.7/bfd/trad-core.c    Thu Oct  8 13:18:09 1992
  118. --- gdb/bfd/trad-core.c    Sat Jan  2 20:54:07 1993
  119. ***************
  120. *** 189,195 ****
  121. --- 189,199 ----
  122.   trad_unix_core_file_failing_signal (ignore_abfd)
  123.        bfd *ignore_abfd;
  124.   {
  125. + #ifdef TRAD_UNIX_CORE_FILE_FAILING_SIGNAL
  126. +   return(TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(ignore_abfd));
  127. + #else
  128.     return -1;        /* FIXME, where is it? */
  129. + #endif
  130.   }
  131.   
  132.   /* ARGSUSED */
  133. diff -c -r gdb-4.7/config.sub gdb/config.sub
  134. *** gdb-4.7/config.sub    Fri Oct 23 04:06:24 1992
  135. --- gdb/config.sub    Sat Jan  2 19:04:50 1993
  136. ***************
  137. *** 165,170 ****
  138. --- 165,174 ----
  139.           basic_machine=i386-unknown
  140.           os=-bsd
  141.           ;;
  142. +     i386-bsdi* | bsd386 | 386bsdi | bsdi)
  143. +         basic_machine=i386-unknown
  144. +         os=-bsdi
  145. +         ;;
  146.       spur)
  147.           basic_machine=spur-unknown
  148.           ;;
  149. Only in gdb/gdb/config: i386bsdi.mt
  150. diff -c -r gdb-4.7/gdb/configure.in gdb/gdb/configure.in
  151. *** gdb-4.7/gdb/configure.in    Wed Oct 14 15:50:18 1992
  152. --- gdb/gdb/configure.in    Sat Jan  2 18:59:55 1993
  153. ***************
  154. *** 124,129 ****
  155. --- 124,130 ----
  156.   i[34]86-*-coff)        gdb_target=i386v ;;
  157.   i[34]86-*-elf)        gdb_target=i386v ;;
  158.   
  159. + i[34]86-*-bsdi*)    gdb_target=i386bsdi ;;
  160.   i[34]86-*-bsd*)        gdb_target=i386bsd ;;
  161.   i[34]86-*-solaris*)    gdb_target=i386sol2 ;;
  162.   i[34]86-*-sunos*)    gdb_target=sun386 ;;
  163. ***************
  164. *** 237,243 ****
  165.       files="${files} ${targetfile}"
  166.       links="${links} tm.h"
  167.   fi
  168. ! rm -f nat.h
  169.   if [ "${nativefile}" != "" ]; then
  170.       files="${files} ${nativefile}"
  171.       links="${links} nm.h"
  172. --- 238,244 ----
  173.       files="${files} ${targetfile}"
  174.       links="${links} tm.h"
  175.   fi
  176. ! rm -f nm.h
  177.   if [ "${nativefile}" != "" ]; then
  178.       files="${files} ${nativefile}"
  179.       links="${links} nm.h"
  180. diff -c -r gdb-4.7/gdb/coredep.c gdb/gdb/coredep.c
  181. *** gdb-4.7/gdb/coredep.c    Wed Oct 21 19:07:09 1992
  182. --- gdb/gdb/coredep.c    Sat Jan  2 13:19:42 1993
  183. ***************
  184. *** 23,30 ****
  185.   #include "defs.h"
  186.   #include <sys/types.h>
  187.   #include <sys/param.h>
  188. - #include "gdbcore.h"
  189.   #include "nm.h"
  190.   
  191.   /* These are needed on various systems to expand REGISTER_U_ADDR.  */
  192.   #ifndef USG
  193. --- 23,30 ----
  194.   #include "defs.h"
  195.   #include <sys/types.h>
  196.   #include <sys/param.h>
  197.   #include "nm.h"
  198. + #include "gdbcore.h"
  199.   
  200.   /* These are needed on various systems to expand REGISTER_U_ADDR.  */
  201.   #ifndef USG
  202. diff -c -r gdb-4.7/gdb/i386b-nat.c gdb/gdb/i386b-nat.c
  203. *** gdb-4.7/gdb/i386b-nat.c    Fri Oct 16 12:16:49 1992
  204. --- gdb/gdb/i386b-nat.c    Sat Jan  2 20:32:45 1993
  205. ***************
  206. *** 26,38 ****
  207.   {
  208.     tEAX, tECX, tEDX, tEBX,
  209.     tESP, tEBP, tESI, tEDI,
  210. !   tEIP, tEFLAGS, tCS, tSS
  211.   };
  212.   static int sregmap[] = 
  213.   {
  214.     sEAX, sECX, sEDX, sEBX,
  215.     sESP, sEBP, sESI, sEDI,
  216. !   sEIP, sEFLAGS, sCS, sSS
  217.   };
  218.   
  219.   /* blockend is the value of u.u_ar0, and points to the
  220. --- 26,40 ----
  221.   {
  222.     tEAX, tECX, tEDX, tEBX,
  223.     tESP, tEBP, tESI, tEDI,
  224. !   tEIP, tEFLAGS, tCS, tSS,
  225. !   tDS, tES
  226.   };
  227.   static int sregmap[] = 
  228.   {
  229.     sEAX, sECX, sEDX, sEBX,
  230.     sESP, sEBP, sESI, sEDI,
  231. !   sEIP, sEFLAGS, sCS, sSS,
  232. !   sSS, sSS
  233.   };
  234.   
  235.   /* blockend is the value of u.u_ar0, and points to the
  236. diff -c -r gdb-4.7/gdb/infptrace.c gdb/gdb/infptrace.c
  237. *** gdb-4.7/gdb/infptrace.c    Thu Oct 22 01:06:43 1992
  238. --- gdb/gdb/infptrace.c    Sat Jan  2 13:18:37 1993
  239. ***************
  240. *** 19,28 ****
  241.   
  242.   #include "defs.h"
  243.   #include "frame.h"
  244. - #include "inferior.h"
  245.   #include "target.h"
  246.   
  247.   #include "nm.h"
  248.   
  249.   #ifdef USG
  250.   #include <sys/types.h>
  251. --- 19,28 ----
  252.   
  253.   #include "defs.h"
  254.   #include "frame.h"
  255.   #include "target.h"
  256.   
  257.   #include "nm.h"
  258. + #include "inferior.h"
  259.   
  260.   #ifdef USG
  261.   #include <sys/types.h>
  262. Only in gdb/gdb: tm-i386bsdi.h
  263. diff -c -r gdb-4.7/include/aout/aout64.h gdb/include/aout/aout64.h
  264. *** gdb-4.7/include/aout/aout64.h    Fri Oct 23 04:05:33 1992
  265. --- gdb/include/aout/aout64.h    Sat Jan  2 15:35:15 1993
  266. ***************
  267. *** 31,39 ****
  268. --- 31,41 ----
  269.   #define ZMAGIC 0413        /* Code indicating demand-paged executable.  */
  270.   #endif
  271.   
  272. + #ifndef N_BADMAG
  273.   #define N_BADMAG(x)      (N_MAGIC(x) != OMAGIC        \
  274.               && N_MAGIC(x) != NMAGIC        \
  275.                 && N_MAGIC(x) != ZMAGIC)
  276. + #endif
  277.   
  278.   /* By default, segment size is constant.  But some machines override this
  279.      to be a function of the a.out header (e.g. machine type).  */
  280. ***************
  281. *** 129,135 ****
  282. --- 131,139 ----
  283.   
  284.   /* Offsets of the various portions of the file after the text segment.  */
  285.   
  286. + #ifndef N_DATOFF
  287.   #define N_DATOFF(x)    ( N_TXTOFF(x) + N_TXTSIZE(x) )
  288. + #endif
  289.   #define N_TRELOFF(x)    ( N_DATOFF(x) + (x).a_data )
  290.   #define N_DRELOFF(x)    ( N_TRELOFF(x) + (x).a_trsize )
  291.   #define N_SYMOFF(x)    ( N_DRELOFF(x) + (x).a_drsize )
  292.  
  293. ------------CUT HERE-----------------------------------------------------------
  294. # This is a shell archive.  Save it in a file, remove anything before
  295. # this line, and then unpack it by entering "sh file".  Note, it may
  296. # create directories; files and directories will be owned by you and
  297. # have default permissions.
  298. #
  299. # This archive contains:
  300. #
  301. #    bfd/config/i386-bsdi.mt
  302. #    bfd/config/i386bsdi.mh
  303. #    bfd/hosts/i386bsdi.h
  304. #    bfd/i386bsdi.c
  305. #    gdb/config/i386bsdi.mt
  306. #    gdb/tm-i386bsdi.h
  307. #
  308. echo x - bfd/config/i386-bsdi.mt
  309. sed 's/^X//' >bfd/config/i386-bsdi.mt << 'END-of-bfd/config/i386-bsdi.mt'
  310. X# Target:  Intel 386 running bsdi, using a.out
  311. XTDEFAULTS = -DDEFAULT_VECTOR=i386bsdi_vec
  312. END-of-bfd/config/i386-bsdi.mt
  313. echo x - bfd/config/i386bsdi.mh
  314. sed 's/^X//' >bfd/config/i386bsdi.mh << 'END-of-bfd/config/i386bsdi.mh'
  315. XHDEFINES=-DTRAD_CORE
  316. XHDEPFILES=trad-core.o
  317. END-of-bfd/config/i386bsdi.mh
  318. echo x - bfd/hosts/i386bsdi.h
  319. sed 's/^X//' >bfd/hosts/i386bsdi.h << 'END-of-bfd/hosts/i386bsdi.h'
  320. X/* Intel 386 running BSD/386 Unix )from BSD Inc. */
  321. X#include <fcntl.h>
  322. X#include <errno.h>
  323. X#include <stdio.h>
  324. X#include <stdlib.h>
  325. X#include <sys/types.h>
  326. X#include <sys/stat.h>
  327. X#include <ctype.h>
  328. X#include <string.h>
  329. X#include <sys/file.h>
  330. X#include <machine/param.h>
  331. X#include <machine/vmparam.h>
  332. X
  333. X#ifndef O_ACCMODE
  334. X#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  335. X#endif
  336. X
  337. X#define SEEK_SET 0
  338. X#define SEEK_CUR 1
  339. X
  340. X#define    HOST_PAGE_SIZE        NBPG
  341. X#define    HOST_MACHINE_ARCH    bfd_arch_i386
  342. X#define    HOST_TEXT_START_ADDR    USRTEXT
  343. X#define    HOST_STACK_END_ADDR    USRSTACK
  344. X
  345. X#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
  346. X  ((core_bfd)->tdata.trad_core_data->u.u_sig)
  347. X
  348. X#define u_comm u_kproc.kp_proc.p_comm
  349. X
  350. X/* EXACT TYPES */
  351. Xtypedef char int8e_type;
  352. Xtypedef unsigned char uint8e_type;
  353. Xtypedef short int16e_type;
  354. Xtypedef unsigned short uint16e_type;
  355. Xtypedef int int32e_type;
  356. Xtypedef unsigned int uint32e_type;
  357. X
  358. X/* CORRECT SIZE OR GREATER */
  359. Xtypedef char int8_type;
  360. Xtypedef unsigned char uint8_type;
  361. Xtypedef short int16_type;
  362. Xtypedef unsigned short uint16_type;
  363. Xtypedef int int32_type;
  364. Xtypedef unsigned int uint32_type;
  365. X
  366. X#include "fopen-same.h"
  367. END-of-bfd/hosts/i386bsdi.h
  368. echo x - bfd/i386bsdi.c
  369. sed 's/^X//' >bfd/i386bsdi.c << 'END-of-bfd/i386bsdi.c'
  370. X/* BFD back-end for i386 a.out binaries under BSDI.
  371. X   Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  372. X
  373. XThis file is part of BFD, the Binary File Descriptor library.
  374. X
  375. XThis program is free software; you can redistribute it and/or modify
  376. Xit under the terms of the GNU General Public License as published by
  377. Xthe Free Software Foundation; either version 2 of the License, or
  378. X(at your option) any later version.
  379. X
  380. XThis program is distributed in the hope that it will be useful,
  381. Xbut WITHOUT ANY WARRANTY; without even the implied warranty of
  382. XMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  383. XGNU General Public License for more details.
  384. X
  385. XYou should have received a copy of the GNU General Public License
  386. Xalong with this program; if not, write to the Free Software
  387. XFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  388. X
  389. X#define QMAGIC    0314    /* Compact demand-load format */
  390. X
  391. X#define N_BADMAG(x)      (N_MAGIC(x) != OMAGIC        \
  392. X            && N_MAGIC(x) != NMAGIC        \
  393. X              && N_MAGIC(x) != ZMAGIC        \
  394. X            && N_MAGIC(x) != QMAGIC)
  395. X
  396. X#define    PAGE_SIZE    4096
  397. X#define    SEGMENT_SIZE    PAGE_SIZE
  398. X#define    DEFAULT_ARCH    bfd_arch_i386
  399. X#define    BYTES_IN_WORD    4
  400. X#define    ARCH        32
  401. X
  402. X#define _NO_PAGE0(x)        (N_MAGIC(x) == QMAGIC)
  403. X#define _HOLE_IN_FILE(x)    (N_MAGIC(x) == ZMAGIC || N_MAGIC(x) == QMAGIC)
  404. X#define _HOLE_IN_ADDR(x)    (_HOLE_IN_FILE(x) || N_MAGIC(x) == NMAGIC)
  405. X
  406. X#define    N_HEADER_IN_TEXT(x)    _NO_PAGE0(x)
  407. X#define N_SHARED_LIB        0
  408. X
  409. X#define    N_TXTSIZE(x)        ((x).a_text)
  410. X#define N_TXTADDR(x)        (_NO_PAGE0(x) ? PAGE_SIZE : 0)
  411. X#define N_TXTOFF(x)        (_NO_PAGE0(x) ? 0 : (N_MAGIC(x) == ZMAGIC ? \
  412. X                    PAGE_SIZE : EXEC_BYTES_SIZE))
  413. X
  414. X#define N_DATADDR(x)        (N_TXTADDR(x) + (_HOLE_IN_ADDR(x) ? \
  415. X                    (PAGE_SIZE + (x).a_text - 1 & ~(PAGE_SIZE-1)) : \
  416. X                    (x).a_text))
  417. X#define N_DATOFF(x)        (N_TXTOFF(x) + (_HOLE_IN_FILE(x) ? \
  418. X                    (PAGE_SIZE + (x).a_text - 1 & ~(PAGE_SIZE-1)) : \
  419. X                    (x).a_text))
  420. X
  421. X#define MY(OP) CAT(i386bsdi_,OP)
  422. X#define TARGETNAME "a.out-i386(bsdi)"
  423. X
  424. X#include "bfd.h"
  425. X#include "sysdep.h"
  426. X#include "libbfd.h"
  427. X#include "libaout.h"
  428. X
  429. X#include "aout-target.h"
  430. END-of-bfd/i386bsdi.c
  431. echo x - gdb/config/i386bsdi.mt
  432. sed 's/^X//' >gdb/config/i386bsdi.mt << 'END-of-gdb/config/i386bsdi.mt'
  433. X# Target: Intel 386 running BSD
  434. XTDEPFILES= i386-tdep.o i386-pinsn.o
  435. XTM_FILE= tm-i386bsdi.h
  436. END-of-gdb/config/i386bsdi.mt
  437. echo x - gdb/tm-i386bsdi.h
  438. sed 's/^X//' >gdb/tm-i386bsdi.h << 'END-of-gdb/tm-i386bsdi.h'
  439. X/* Macro definitions for i386 running under BSDI Unix.
  440. X   Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
  441. X
  442. XThis file is part of GDB.
  443. X
  444. XThis program is free software; you can redistribute it and/or modify
  445. Xit under the terms of the GNU General Public License as published by
  446. Xthe Free Software Foundation; either version 2 of the License, or
  447. X(at your option) any later version.
  448. X
  449. XThis program is distributed in the hope that it will be useful,
  450. Xbut WITHOUT ANY WARRANTY; without even the implied warranty of
  451. XMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  452. XGNU General Public License for more details.
  453. X
  454. XYou should have received a copy of the GNU General Public License
  455. Xalong with this program; if not, write to the Free Software
  456. XFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  457. X
  458. X/* Override number of expected traps from sysv. */
  459. X#define START_INFERIOR_TRAPS_EXPECTED 2
  460. X
  461. X/* Most definitions from sysv could be used. */
  462. X#include "tm-i386v.h"
  463. X
  464. X/* Define this if the C compiler puts an underscore at the front
  465. X   of external names before giving them to the linker.  */
  466. X#define NAMES_HAVE_UNDERSCORE
  467. X
  468. X/* BSD/386 cannot handle all segment registers. */
  469. X#undef NUM_REGS
  470. X#define NUM_REGS 14
  471. END-of-gdb/tm-i386bsdi.h
  472. exit
  473.  
  474.  
  475.