Commit Graph

442 Commits

Author SHA1 Message Date
obrien
137490f70d Add files new with 2.12.0. 2002-01-27 13:03:58 +00:00
obrien
8e316b696c We are now at a 2.12.0 pre-release snap version. 2002-01-27 13:02:31 +00:00
jhb
580f3319c9 Catch up to the globaldata -> pcpu changes. 2001-12-12 21:15:30 +00:00
peter
a4375c2dae *** empty log message *** 2001-12-11 07:04:48 +00:00
obrien
9beed4b819 Upgrade to Binutils 2.11.2. 2001-12-06 03:10:42 +00:00
obrien
c3723c4c99 Make the logic more explicit. 2001-10-19 20:20:16 +00:00
obrien
c0f4587381 We don't use the IA-64 psABI ELF_DYNAMIC_INTERPRETER, so remove it. 2001-10-15 03:10:48 +00:00
obrien
cfb1b45b4c Clean this up. 2001-10-15 02:14:08 +00:00
obrien
742c9a45b0 Binutils 2.11.2 build framework for the FreeBSD/IA-64 target. 2001-10-15 02:13:26 +00:00
obrien
7e528e5a62 We don't support GDB for IA-64, PowerPC, or sparc64 yet. 2001-10-15 01:57:13 +00:00
obrien
35f617ebb3 We can easily share obj-format.h and targ-env.h files across all FreeBSD
platforms, which reduces the upgrade effort.
Also tidy up the Makefiles.
2001-10-15 01:43:23 +00:00
obrien
88040c2404 More cleaning. 2001-10-15 01:18:51 +00:00
obrien
3b3f4a1ff2 Adjust for the movement of `as' headers. 2001-10-14 02:15:58 +00:00
obrien
ae115aae87 You know the last revision will work better if the TARGET_TUPLE is set
conditionally....
2001-10-14 02:13:55 +00:00
obrien
41df122324 Allow easier override of the configure tuple, in case you wanted to build
as "powerpc-obrien-freebsd" rahter than "powerpc-unknown-freebsd" for example.
2001-10-14 02:12:40 +00:00
obrien
d401052f83 Need to look in additional places for BFD's config.h now. 2001-10-14 02:07:26 +00:00
obrien
a28a8cb8f0 Clean up a little bit more. 2001-10-14 01:58:18 +00:00
obrien
06ba7c459f Clean up the formatting. 2001-10-14 01:57:19 +00:00
obrien
47a1f874c0 We do "sparc64", not "sparc". 2001-10-14 01:57:07 +00:00
obrien
bbe4c70f08 Clean up the formatting. 2001-10-14 01:47:30 +00:00
obrien
ca2572a2e9 We do "sparc64", not "sparc". 2001-10-14 01:33:07 +00:00
obrien
d315254d6f Clean up the formatting. 2001-10-14 01:31:37 +00:00
obrien
ec61de5567 We can easily share a single config.h file across all FreeBSD platforms,
which reduces the upgrade effort.
2001-10-14 01:24:07 +00:00
obrien
580b1d588d Update for Binutils 2.11.2. 2001-10-14 01:08:32 +00:00
obrien
147dd9f906 We support sparc64, not plain sparc. 2001-10-14 01:00:29 +00:00
obrien
e0013317b9 Clean up the formatting. 2001-10-14 00:58:59 +00:00
bde
73b394228c Backed out "Compensate for header dethreading [mistakes]" mistakes in
alpha files too.
2001-10-13 04:38:46 +00:00
bde
229c3ac7c3 Compensate for "Compensate for header dethreading" by backing it out. 2001-10-10 17:48:44 +00:00
iedowse
478926021c Remove the Xresume* labels from the i386 interrupt handlers; the
code in ipl.s and icu_ipl.s that used them was removed when the
interrupt thread system was committed. Debuggers also knew about
Xresume* because these labels hide the real names of the interrupt
handlers (Xintr*), and debuggers need to special-case interrupt
handlers to get the interrupt frame.

Both gdb and ddb will now use the Xintr* and Xfastintr* symbols to
detect interrupt frames. Fast interrupt frames were never identified
correctly before, so this fixes the problem of the running stack
frame getting lost in a ddb or gdb trace generated from a fast
interrupt - e.g. when debugging a simple infinite loop in the kernel
using a serial console, the frame containing the loop would never
appear in a gdb or ddb trace.

Reviewed by:	jhb, bde
2001-10-09 19:54:52 +00:00
iedowse
3cfe16a87b Catch up with the SMPng reduced interrupt frame size. The corresponding
change was made to DDB months ago (i386/i386/db_trace.c revision 1.37).

Reviewed by:	bde
2001-10-08 12:46:01 +00:00
obrien
f047e940b4 Unconditionally use basename.c source vs. only doing this if the libc we
are linking against does not have basename().  There is a buffer overflow
bug in lib/libc/gen/basename.c rev 1.1.  There is no way for us to test
what revision of basename() we have in libc, thus this change.

Requested by:	ru
2001-09-26 20:51:51 +00:00
ru
e97a4764bb Fixed the buildworld breakage in cross-tools caused by
misuse of /usr/src/include headers.  This REALLY fixes
the 20010919 src/UPDATING entry.

With this patch the 4.2-RELEASE box was able to survive
the 5.0-CURRENT "make world".

Beat over the head with this patch:	obrien
2001-09-24 09:25:05 +00:00
peter
5c7920c83b Fix alpha gdb -k on "live" kernels. Use offsetof() instead of some evil
hand-rolled macros to do the same thing.
2001-09-20 06:31:23 +00:00
fenner
b56fb0e4dd Don't try to dereference a kernel pointer in userland; use offsetof()
to get the right address.

This fixes kernel GDB after KSE2.

Reviewed by:	jhb, jake
2001-09-19 18:42:19 +00:00
obrien
3d85dcd29b Rev 1.10 bogusly tested the kernel version, not the libc version.
The version of the kernel has no bearing on what is in libc.
We now search for basename in libc to determin if we need to include
the libiberty version in the build.

This is all still a bit bogus as it will (like the sysctl method) cause
basename.o to be linked into the cross-build as well as the host build.  It
would probably be better to test if we were doing the initial host build and
unconditionally include that.  Once we've generated the target libc we know
that basename is available.  (maybe test for $TOOLS_PREFIX or something).

Submitted by:	peter
2001-09-14 23:07:02 +00:00
peter
1e54689816 Update this to compile on the Alpha. 2001-09-14 11:08:44 +00:00
julian
5596676e6c KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.

Sorry john! (your next MFC will be a doosie!)

Reviewed by: peter@freebsd.org, dillon@freebsd.org

X-MFC after:    ha ha ha ha
2001-09-12 08:38:13 +00:00
obrien
75e49f40f4 Fix the upgrade path from 4.1 and earlier. 2001-09-06 22:59:31 +00:00
peter
1baec06421 Dynamically adapt to kernbase changes on crashdumps, falling back to
KERNBASE if the "kernbase" symbol is not present on older kernels.
2001-08-24 09:12:04 +00:00
obrien
8ca63ecded Define _KERNEL as this grubs around where no userland should go. 2001-08-16 20:47:01 +00:00
ru
95ce4d2cdc Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
obrien
d45178b105 Hook up the manpage. 2001-07-29 07:21:39 +00:00
obrien
f7019990ad Add lbasename which is used in the `LD' fix for -current. 2001-07-20 03:53:28 +00:00
obrien
12bfbfe580 Update the version string so I can identify this new variant. 2001-07-20 03:51:17 +00:00
peter
ad25811e3e Use the real structure names explicitly. Note that this is mostly for
reading old a.out core files, which are totally 100% non-understandable
to the gdb floating-point reader if you have SSE turned on.

This should be the last of the world build breakers...
2001-07-12 13:01:17 +00:00
ru
3fe56fcc04 Fixed CLEANFILES. 2001-07-12 08:48:36 +00:00
obrien
0d05e55dec Upgrade to Binutils 2.11.2. 2001-06-29 07:49:41 +00:00
obrien
cf97142871 Style fix. 2001-06-26 18:32:20 +00:00
obrien
dbf5ef1b18 Add the IA-64 unwind handling (needed for readelf). 2001-06-26 18:29:47 +00:00
obrien
5e25d45ce5 Upgrade to Binutils 2.11.2. 2001-06-26 18:20:46 +00:00
obrien
02e65ac0b6 Upgrade to 2.11.2. 2001-06-26 17:13:11 +00:00
obrien
e737f3aa3b Minor style reformatting. 2001-06-01 05:31:02 +00:00
obrien
7b1325a8d1 Upgrade to Binutils 2.11.0. 2001-06-01 05:30:31 +00:00
obrien
9b619de16b Upgrade to Binutils 2.11.0. 2001-05-28 09:19:47 +00:00
obrien
da7be50dfe Total hack to fix broken bootstrap. Add -I/usr/src/include at the tail
end of the include searching.  We really need a real fix for the issue of
which set of headers to use in compiling the cross-tools -- /usr/include,
or /usr/src/include.
2001-05-03 21:37:06 +00:00
mjacob
6b13cad380 like i386, add inclusion of lock.h 2001-05-03 06:33:33 +00:00
markm
0c912b5698 Compensate for dethreaded headers.
(I have no religion about how this was done. Follow-up commits welcome)
2001-05-01 09:08:09 +00:00
ru
2d1b95a96f mdoc(7) police: normalize .Nd. 2001-04-18 15:54:10 +00:00
ache
6fec02460c Upgrade for readline 4.2 2001-04-11 04:27:10 +00:00
obrien
686317c48c Remove MIPS support.
It has rotted quite badly and no one has provided updates for it.
2001-04-11 00:12:48 +00:00
obrien
74257830df Reduce the libiberty sources we build to those we actually need. 2001-03-31 20:00:18 +00:00
obrien
768b07e4c3 Minor style cleanup. 2001-03-31 07:50:30 +00:00
ru
87ed4c32b3 MAN[1-9] -> MAN. 2001-03-27 14:59:06 +00:00
obrien
d4c331dbb7 Temporary build structure for GDB 5.0 so people can test the new version
before pulling the switch to making it the default version.
2001-03-25 02:20:37 +00:00
obrien
0684e6b4c3 Note rules of enguagement. 2001-03-15 23:20:13 +00:00
obrien
5fa97ec5bf Allow "NOSHARED" to be overridden.
Submitted by:	bde
2001-02-28 10:46:50 +00:00
obrien
b564bac285 Make critical toolchain binaries staticly linked in this development
version of the OS.
2001-02-27 11:25:43 +00:00
obrien
fb40cd6e43 Our OS name is "freebsd", not "freebsdelf" 2001-02-21 11:43:35 +00:00
jake
d9000b19e7 - Add #defines for the symbol names of the kernel interrupt, system
call and trap entry points so they're easy to find and change
- Use the cpuhead and allcpu list to locate globaldata for the current
  cpu, rather than SMP_prvspace or __globaldata
- Use offsets into struct globaldata directly to find per-cpu variables,
  rather than symbols in globals.o

Glanced at by:	peter
2001-01-10 18:15:25 +00:00
peter
9454bb0e68 Fix gdb -k after jake's most recent commit. The gd_XXX symbols are now
offsets in all cases, and we have to find the base address (&__globaldata)
ourselves for the UP case as well as SMP.
2001-01-07 05:08:39 +00:00
phk
ea5b751a79 Use macro API to <sys/queue.h>
Submitted by:	Dima Dorfman <dima@unixfreak.org>
Reviewed by:	phk
2000-12-31 11:22:42 +00:00
ru
03fb4ce195 Prepare for mdoc(7)NG. 2000-12-27 13:59:17 +00:00
joerg
05c5536b8f Fix an annoying message ``gdb: ptrace(PT_GETDBREGS) failed: No such process''
when using gdb on a remote target.  The fix is to restrict PT_GETDBREGS
calls to `child' and `freebsd-uthreads' targets solely.

I've been in some conversation with Brian about this, and this solution
seems to be the most appropriate one.

PR:		gnu/21685
Submitted by:	bsd
2000-12-26 20:38:46 +00:00
obrien
479e65df3a Our OS name is "freebsd", not "freebsdelf". 2000-12-15 20:11:28 +00:00
jhb
43e413488a Catch up to the new kinfo_proc. 2000-12-12 23:21:24 +00:00
obrien
c2ee1dcc02 Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
obrien
40bf148c56 Deal with a real PITA in that GDB 4.18 (as we imported it) requires a
`wait.h' that was in contrib/binutils/, however this wait.h went away with
bintuils 2.10.0 so I `cvs rm'ed it.  Now we find gdb will not build.  This
binutils wait.h contained nothing we didn't already have in <sys/wait.h>.
So just hack a symlink to it.
2000-11-25 13:59:49 +00:00
obrien
76e09cb341 stringify.sed' has been replaced by astring.sed' [on ANSI-C systems]. 2000-11-25 13:56:28 +00:00
obrien
c33eca4e33 Correct the Bintuils src path from the debugging version I accidently
committed.
2000-11-15 22:05:00 +00:00
obrien
2d220ac7a0 Upgrade to Binutils 2.10.1. 2000-11-15 21:29:55 +00:00
obrien
3b748c2f8b Build and install the useful `readelf' util that is new with Binutils 2.10.0. 2000-11-13 09:47:31 +00:00
deischen
2298b37bd4 Sync gdb thread support with recent changes to the threads library.
Approved by:	obrien
2000-11-10 00:36:01 +00:00
deischen
c38dc4b5f9 Adjust to reflect recent changes in the internal layout of a struct
pthread in libc_r.

Reviewed by:	dfr
2000-10-13 22:15:19 +00:00
joerg
362647b567 Implement the GDB counterpart to use hardware watchpoints in connection
with Brian's kernel support for i386 debug registers.  This makes
watchpoints actually usable for real-life problems.  Note: you can
only set watchpoints on 1-, 2- or 4-byte locations, gdb automatically
falls back to [sloooow] software watchpoints when attempting to use
them on variables which don't fit into this category.  To circumvent
this, one can use the following hack:

watch *(int *)0x<some address>

David O'Brien is IMHO considering to get this fully integrated into the
official GDB, but as long as we've got the i386/* files sitting around
in our private FreeBSD tree here, the feature can now be tested more
extensively, so i'm committing this for the time being.

This work has been done in order to debug a tix toolkit problem, thus
it has been sponsored by teh Deutsche Post AG.

Reviewed by:	bsd (not the operating system, but Brian :-)
2000-08-17 16:27:26 +00:00
obrien
53039364ea Install the general binutils (such as `nm') info files.
Patch submitted by:	nbm
PR:	16585
Submitted by:	Assar Westerlund <assar@sics.se>
2000-07-10 09:55:29 +00:00
obrien
5a907ff0c1 We are now at version 2.10 release. 2000-06-20 06:19:15 +00:00
jake
961b97d434 Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by:		msmith and others
2000-05-26 02:09:24 +00:00
jake
d93fbc9916 Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by:	phk
Reviewed by:	phk
Approved by:	mdodd
2000-05-23 20:41:01 +00:00
obrien
0624c65a35 Updated 2.10 headers. 2000-05-22 08:40:17 +00:00
obrien
f9cf2be8ca Tweaks to match those done in the Binutils mainline code. 2000-05-22 08:33:03 +00:00
obrien
aa7968485d version 2.10 config file. 2000-05-22 08:26:10 +00:00
obrien
e6cacfa3cb Conditionally define "CROSS_COMPILE" here. 2000-05-22 08:25:40 +00:00
obrien
c2ff59c916 Pull the switch and activate our Binutils to a snapshot of the up and
comming 2.10 release.
2000-05-22 08:09:42 +00:00
obrien
ea10302aad callback.c is not really used, nor is it part of GDB 4.18. 2000-05-17 19:30:59 +00:00
obrien
8cd37d7556 Use a alternate side 2.9.1 source tree while upgrading Binutils. 2000-05-12 22:55:23 +00:00
dfr
706084939e Add support for debugging programs using libc_r's implementation of
pthreads.
2000-04-29 09:03:49 +00:00
steve
c42b9409ef Add sparcnetbsd support and cleanup style so that this looks nearly
identical to Makefile.sparc.
2000-04-16 23:42:25 +00:00
steve
c637f38769 Fix a typo (aout32.o -> aout32.c). Add support for NetBSD/Sparc and
sparc64.
2000-04-16 23:39:46 +00:00
gj
f9d6885bc6 Add a '+' to the first LDADD, otherwise it clobbers the LDADD in
Makefile.alpha such that the -lkvm disappears and the link fails.

This time I tested it, honest :)
2000-04-04 11:12:55 +00:00
steve
9c96a3af95 Add support for sunos_big_vec to support 'make world's on Solaris
boxes.
2000-04-03 03:51:46 +00:00
steve
5a99709c25 Add support for the sunos_big_vec format as well. 2000-04-03 03:48:49 +00:00
steve
9560447fbd Build and install the elf32_sparc ld(1) scripts and make elf32_sparc
the default emulation.
2000-04-03 03:42:07 +00:00
steve
2e142113a1 First cut at the (non-contrib) bits needed to build the binutils
distribution for FreeBSD/Sparc64.

Reviewed by:	obrien
2000-04-02 22:36:56 +00:00
steve
969b28293d The ld directory is in ${SRCDIR} not ${BINUTILSDISTDIR}. 2000-04-02 20:23:58 +00:00
bde
3df6f40aa1 Use ${dir}/libfoo.a' instead of -L${dir} -lfoo' for local static
libraries in LDADD so that `make checkdpadd' doesn't report non-errors.

Fixed some style bugs (the usual ones for DPADD and LDADD, and misformatting
of $FreeBSD$).
2000-03-27 18:02:04 +00:00
peter
72ba83a59e A bandaid to try and make this buildable. This should probably be
rechecked by somebody who knows what is meant to happen here. The new
libreadline rluser.texinfo file duplicates the '@defcodeindex bt' entry.
2000-03-20 10:52:28 +00:00
obrien
a9d506d5fb Build and install gasp's infodocs along side the other binutil docs rather
than seperately.

Pointed out by:	bde
2000-02-21 20:33:31 +00:00
obrien
909b9c1e8a Honestly, really, really add a manpage for gasp. 1999-12-30 04:48:17 +00:00
obrien
ea37af3a71 Add a manpage for gasp. 1999-12-30 04:46:38 +00:00
obrien
b44d317152 Hookup the info docs. 1999-12-29 00:38:48 +00:00
obrien
f9f846550e Build and install the GASP info page. Unfortunately there is no manpage. 1999-12-28 22:32:24 +00:00
marcel
b05cb67442 s/MACHINE_ARCH/TARGET_ARCH/g
The target machine is represented by TARGET_ARCH. MACHINE_ARCH always
represents the host machine. When TARGET_ARCH is not defined, it is
assumed to be equal to MACHINE_ARCH. This means that we're building a
native toolset by default. We're creating cross-compilation tools when
MACHINE_ARCH != TARGET_ARCH.

TARGET_ARCH is defined when building binutils as part of the bootstrap
build and is set to reflect the architecture we're currently cross-
building. With this change binutils is ready for cross-building.
1999-12-17 15:50:45 +00:00
marcel
542194f894 Don't make gdb, objc and f77 when building tools. 1999-12-09 16:40:27 +00:00
dfr
9ca6f15c21 Make this actually build with current sources. 1999-12-08 11:47:48 +00:00
dfr
280ae2df10 Build gasp (GAS Preprocessor). This is needed for building Glide. 1999-12-07 17:01:27 +00:00
marcel
17ed6e05da ${MACHINE} -> ${MACHINE_ARCH}
All Makefiles now use MACHINE_ARCH for the target architecture.
Unification is required for cross-building.

Tags added to:
	sys/boot/Makefile
	sys/boot/arc/loader/Makefile
	sys/kern/Makefile
	usr.bin/cpp/Makefile
	usr.bin/gcore/Makefile
	usr.bin/truss/Makefile

usr.bin/gcore/Makefile:
	fixed typo: MACHINDE -> MACHINE_ARCH
1999-11-14 13:54:44 +00:00
marcel
23856581a7 Make binutils for Alpha work on i386 machine, by properly defining
whether the host machine has a 64-bit long or not.
1999-11-12 16:53:58 +00:00
jb
ca5c8e5ca1 Replace freebsdelf with freebsd in BINDIR
Requested by: obrien
1999-11-07 08:07:02 +00:00
jb
81e20dd7c7 These have been repo-copied to i386-freebsd. 1999-11-07 06:13:35 +00:00
jb
9f72cef76d These have been repo-copied to alpha-freebsd. 1999-11-07 06:11:36 +00:00
jb
0fb7b21e57 Replace freebsdelf with freebsd in most places.
Requested by: obrien
1999-11-07 06:01:35 +00:00
jb
e4d1b59537 After a repo copy of as_{alpha,i386,mips} to {alpha,i386,mips}-freebsd,
tidy up the logic that works out which sub-directories to build.

The new directories with freebsdelf suffixes now have freebsd suffixes
after a repo move by Peter at the request of David O'Brien.
1999-11-07 05:59:25 +00:00
jb
e8b385afd6 Replace freebsdelf with freebsd in BINDIR.
[ alpha-freebsd, i386-freebsd and mips-freebsd were repo-copied
  by Peter (one of the repo-men) ]

Requested by: obrien
1999-11-07 05:56:04 +00:00
jb
586165f5be Add support for additional architectures. 1999-11-06 22:52:33 +00:00
jb
5e8870e543 Use the simplified genscripts.sh and set the cross-compiled library
directory to /usr/cross/${MACHINE_ARCH}-freebsdelf/usr/lib so that
the cross tools behave the same way that the host versions do. When
building cross tools, Cygnus doesn't set the default library directory.
This doesn't suit FreeBSD IMHO.

Add WinNT emulation support too. You only get this if you've set
BINUTILSDISTDIR because the contrib/binutils repository doesn't
contain the required sources.
1999-11-06 22:46:45 +00:00
jb
7c5467e518 Use the simplified genscripts.sh and set the cross-compiled library
directory to /usr/cross/${MACHINE_ARCH}-freebsdelf/usr/lib so that
the cross tools behave the same way that the host versions do. When
building cross tools, Cygnus doesn't set the default library directory.
This doesn't suit FreeBSD IMHO.
1999-11-06 22:44:32 +00:00
jb
e282132194 This is a simplified version of the binutils script which better suits
the (few) things that the FreeBSD makefiles need to specify.
1999-11-06 22:40:15 +00:00
jb
7ed759d55a Add a BINUTILSDISTDIR hook here too. 1999-11-06 22:36:40 +00:00
jb
6e12da36ad This one might be a bit controversial. 8-)
gas for i386 targeted to NT for those (like me) who have to do work
targeted to NT, but can't stand actually looking at it all day long.
I cross build apps on FreeBSD and just run them on NT later. Life is
better that way.
1999-11-06 22:26:43 +00:00
jb
6fdfa22232 gas for m68k targeted to NetBSD's a.out format. Useful for porting or
even just building applications targeted to NetBSD.

I know this will upset some people (outside FreeBSD).
1999-11-06 22:21:57 +00:00
jb
cd87b9d347 gas for powerpc targeted to FreeBSD. 1999-11-06 22:16:59 +00:00
jb
3d317a4c53 gas for m68k targeted to FreeBSD. 1999-11-06 22:14:26 +00:00
jb
bc08ddaec9 gas for sparc targeted to FreeBSD as ELF32 for a start (suject to change). 1999-11-06 22:12:24 +00:00
jb
011fa07f79 Don't change the name when building a cross-tool. Just set the BINDIR
to /usr/libexec/cross/${MACHINE_ARCH}-freebsdelf.
1999-11-06 21:59:29 +00:00
jb
f3f02229c7 Add the BINUTILSDISTDIR hook here too. 1999-11-06 21:55:33 +00:00
jb
6321dca496 Change CROSS_TARGETS to CROSS_FORMATS because that makes more sense.
Check if already cross-compiling and only build the cross-tools if
not cross-compiling (to save time).
1999-11-06 21:54:21 +00:00
jb
59dcf5a046 Add support for additional architectures. 1999-11-06 21:38:41 +00:00
jb
def8da7129 Add support for additional architectures. 1999-11-06 21:28:22 +00:00
jb
b1941ed9e5 Change CROSS_TOOLS to CROSS_ARCH because that makes more sense.
Allow for the case where the host architecture might also be listed
in CROSS_ARCH, so don't do things twice. This situation can arise if you
want NT support in binutils (CROSS_ARCH=i386 CROSS_FORMAT=winnt).
1999-11-06 21:13:47 +00:00
jb
86e5daf08b Teach binutils how to understand NT format objects and libs. This is useful
for those who want to objdump --disassemble things that they're not
supposed to. 8-)
1999-11-06 21:09:40 +00:00
jb
d6ff5f1a9a Add a BINUTILSDISTDIR hook to provide a path to a full binutils release
outside the contrib files that FreeBSD distributes. This for use by
those who want to work on porting FreeBSD to additional architectures.
1999-11-06 21:04:46 +00:00
jb
b6a400c781 Add binutils support for additional architectures. 1999-11-06 21:02:48 +00:00
peter
289c0d262f $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
gallatin
8055b17e85 Live & postmortem kernel debugging support for the alpha platform.
This was modeled after NetBSD's kernel debugging support.

Reviewed by: Doug Rabson <dfr@nlsystems.com>
1999-06-21 15:00:15 +00:00
dt
fee8b19d53 Fix placement of signal trampoline. 1999-06-13 19:41:50 +00:00
bde
167e3b025f Fixed some regressions in rev.1.40:
- rev.1.39 was clobbered.
- PROG was defined twice, once as nm.
- style bugs.
1999-05-11 08:07:51 +00:00
dfr
e6c289aed0 Install gdbserver and gdbreplay in /usr/bin, not /usr/libexec/elf. 1999-05-08 12:08:06 +00:00
dfr
551edfd501 Implement corefiles for FreeBSD/alpha. This requires a separate change to
the kernel which is awaiting review.
1999-05-07 21:49:06 +00:00
dfr
e53213fbe3 Add core-regset.c to the Makefile to allow debugging elf corefiles. 1999-05-07 19:53:05 +00:00
dfr
5ba529d419 * Merge gdb/doc/Makefile into binutils/doc/Makefile
* Update build for gdbserver and gdbreplay to work under binutils
* Fix gdbserver to use PT_GETREGS etc to access registers, removing the
  dependancy on the u-area.
* Make gdbserver work on the alpha.
1999-05-02 19:50:18 +00:00
dfr
32ac729330 Enable gdb on the alpha. 1999-05-02 16:11:43 +00:00
dfr
9d9f67f5dd Enable building gdb under binutils for i386. I can't enable the alpha build
yet since CVS is hiding one of my files.
1999-05-02 11:38:12 +00:00
dfr
64bb59fd59 * Add bmake framework for using gdb alongside binutils. The old bmake
framework was repository copied from gnu/usr.bin/gdb.
* Add alpha support.
1999-05-02 11:32:14 +00:00
luoqi
ff48ed9c3e Make gdb work with kernel after the SMP vmspace sharing changes. 1999-04-28 01:27:55 +00:00
imp
b4fe1fc062 For mips assembler, we need to define TARGET_BYTES_BIG_ENDIAN to be
zero when building for little endian machines.

Correct the target names for mips.  We just use the generic targets
for mips elf, so the mipse[lb]-unknown-freebsd emulation types don't
exist.
1999-04-22 07:19:20 +00:00
imp
3e5b295613 TARGET was being defined wrong, causing ld to always fail. It is the
name of the bfd target, not the gnu-standard target name.  Corrected
to be elf32-{big,little}mips from mipse[bl]-unknown-freebsd.

DEFAULT_EMULATION was bogusly defined, causing ld to always fail (this
was masked by the TARGET bogosity).  Define correctly as elf32bmip and
elf32lmip.  Mips doesn't follow the same conventions as i386 and alpha
do in this area.

ld now appears to work correctly for the uncommitted mips changes to
egcs.
1999-04-21 07:46:06 +00:00
obrien
9af4b2b5ea This duplicates gnu/usr.bin/cc/c++filt. 1999-04-18 10:25:57 +00:00
bde
1b04986c84 echo -> ${ECHO}. 1999-04-03 07:04:53 +00:00
imp
4697c1d0cc Add TARGET_ARCH=mipsel and TARGET_ARCH=mipseb as a valid targets.
Unlike the unisex architecutres we've had so far, mips is bisexual.
These tools can produce either byte sex, and the compiler/make
determines the proper gender to use.  Otherwise, we'd have to have had
mipsel and mipseb in all the places that we have just mips.  And there
are other complications with doing that (binutils doesn't like to
build mips tools without both byte genders, it seems).

Introduced BINUTIL_ARCH so that other bisexual architectures can a
generic mechanism.

We cannot just define MACHINE_ARCH as mips because we need to
differentiate big and little endian types of binaries.  Discussions on
freebsd-arch have hashed out this issue (and the parallel libc
issues).  NetBSD is moving towards mipsel and mipseb for their two
flavors of mips ports (in time for 1.4, if this change hasn't already
been accomplished).

I've been building i386 worlds with this tree for a three months with
these files in place with no ill effects.
1999-03-01 04:01:57 +00:00
n_hibma
1331b59885 Ignore return value for strip. Avoids make world going pop
because of

strip maybe_stripped
strip: maybe_stripped: File format not recognized
*** Error code 1

in I/usr/src/gnu/usr.bin/binutils/strip
1999-01-08 10:33:12 +00:00
bde
34ec08b0e2 Fixed breakage of gdbreplay's and gdbserver's BINDIR in previous commit.
They may belong in /usr/libexec/{aout,elf}, but objformat doesn't
support that.

Fixed bogus `?=' assignments for BINDIR.
1998-10-15 14:15:09 +00:00
jdp
462ff1335f Don't build the info pages for the old assembler. Instead, build
and install the info pages for the new assembler and linker.
1998-10-03 03:59:47 +00:00
jdp
fc9aaf05cb Fix GDB so that it can handle ELF core dumps. 1998-09-14 22:49:02 +00:00
dfr
63add4ec59 Update alpha configuration files and remove i386 target from
libbinutils/config.h - it is declared in the arch Makefile.
1998-09-07 08:18:34 +00:00
jdp
e20ec13750 Update for import of binutils-2.9.1.
Submitted by:	Doug Rabson <dfr>
1998-09-06 23:01:53 +00:00
jb
13a816f577 Missed some BINFORMATs. Fingers! Can't live with 'em. Can't live without 'em. 1998-08-30 02:46:35 +00:00
jb
ae7da114f6 BINFORMAT -> OBJFORMAT ready for E-day. I tossed a coin to decide this
one. We'll probably need to revisit gdb after E-day.
1998-08-30 02:01:07 +00:00
jb
8182f2c073 Install binutils tools in /usr/libexec/elf like on i386 so that objformat
can be used to select them. The purpose of this is not necessarily to
allow another host format, but to allow us to use the objformat trickery
for cross compilation.
1998-08-18 06:51:08 +00:00
bde
755fd03ef8 Fixed printf format errors. 1998-06-30 20:48:45 +00:00
bde
14b705d009 Don't use beforedepend or give dependencies on generated headers explicitly.
Just put generated headers in SRCS.
1998-06-04 06:50:58 +00:00
bde
65791359e8 Removed superfluous beforedepends. Their files were already in SRCS. 1998-06-04 06:38:17 +00:00
bde
e9928f4610 Don't use beforedepend; just put generated headers in SRCS. ldgram.h
was already put in SRCS by the general yacc rules.  Putting ldemul-list.h
in SRCS fixes races in `make -jN' when .depend hasn't been made.

Don't forget to clean ldemul-list.h.
1998-06-04 06:26:23 +00:00
bde
350f093ed2 Removed special rules for lex- and yacc- generated files. The general
rules work identically, except that they actually work if the yacc-
generated header somehow becomes out of date.
1998-06-04 01:09:28 +00:00
peter
04e2e080ec Missing DPADD's. 1998-06-03 18:57:59 +00:00
peter
5a5e9be6f6 Add missing DPADD's. 1998-06-03 18:01:04 +00:00
bde
400020b8c9 Don't attempt to read process context from the kernel when (the
kernel's) curproc is null.  This fixes endless recursion in
xfer_umem() for attempts to read from user addresses, in particular
for attempts to read %fs and %gs from the pcb for `info reg'.
1998-05-12 16:49:13 +00:00
jb
1538b84478 The yacc makefile changes don't seem to know when to generate the
header file and when not to, so for the time being make sure the
sucker gets generated up front.
1998-05-11 09:33:55 +00:00
jb
bd175fde7d Add CROSS_TARGETS to the list of GASES to build. We end up with a separate
gas for each target format. So for m68k targets that means several
gases. I wanted a m68k gas for VxWorks which uses aout in sun3 big
endian format, cross compiled on i386 under FreeBSD using libraries
supplied by DEC and intended by them for cross compilation on Alpha
under OSF/1. And it actually works!
1998-05-11 09:31:17 +00:00
jb
56f89354f8 Make a path absolute. 1998-05-11 09:26:39 +00:00
jb
f692a926a1 Fix the path. 1998-05-05 12:33:21 +00:00
jb
4f6564ed3b Specify an absolute include path.
Backout the previous commit in favour of the Makefile.inc added to
the parent directory.
1998-05-05 10:32:47 +00:00
jb
9ba533fa7b One of those silently included files that just about guarantee that
nobody has any idea how something like BINDIR gets defined.
1998-05-05 10:27:39 +00:00
jb
2e38ab65f6 The BINDIR definition is an extra directory level away, so include it
explicitly.
1998-05-05 08:57:11 +00:00
jb
774841113f Oops, missed the common part of gas. 1998-05-05 08:53:27 +00:00
jb
9de382a93c Support cross architectures by using specific directories instead of
the ones that match the host.
1998-05-04 22:09:10 +00:00
jb
f20e90aa53 i386 gas config files. 1998-05-04 22:05:54 +00:00
jb
b041393c3a Alpha gas config files. 1998-05-04 22:04:55 +00:00
jb
4d69d5fc11 Support cross-architectures using sub-directories. 1998-05-04 22:03:00 +00:00
jb
6534f3e8d1 Add support for cross-architecture gases. Since the GNU code doesn't
support more than one architecture at a time, build as from the
default for the host and if CROSS_TOOLS defines other architectures,
build them as as_${arch}
1998-05-04 22:01:27 +00:00
jb
2f0e7b1aa7 BINDIR is now specified in a single place. There are no cross-architecture
issues with this utility.
1998-05-04 21:51:32 +00:00
jb
bbfea6ea50 Work out the list of emulations based on the cross-architectures
defined. The TARGET is now set from an included makefile.
1998-05-04 21:38:46 +00:00
jb
b589c58ec2 Add cross-architecture support. 1998-05-04 21:29:54 +00:00
jb
f0eb2d4948 BINDIR is now specified in a single place. There are no cross-architecture
issues with this utility.
1998-05-04 21:27:17 +00:00
jb
c61cc8dcc3 BIDIR is now specified in a single place. There are no cross-architecture
issues with this utility.
1998-05-04 21:23:23 +00:00
jb
eeded739d5 Evaluate the TARGET from the architecture. We'll assume that FREEBSD
is ELF from here on.
1998-05-04 21:21:17 +00:00
jb
a0c54981d6 Remote i386 cross-architecture support. It's now configurable, and off
by default.
1998-05-04 21:18:46 +00:00
jb
fafa18013b Add cross-architecture support. 1998-05-04 21:16:46 +00:00
jb
b509eaa65e Since the makefiles below binutils with the architecture extension
are now included according to the cross-architecture support required,
default the BINDIR for i386 to /usr/libexec/elf here instead of in
all the i386 specific makefiles. For all other architectures, BINDIR
is just /usr/bin.
1998-05-04 21:13:50 +00:00
jb
e23f821a54 Add makefile support for cross-architectures. Allow CROSS_TOOLS to
be defined (in /etc/make.conf, say) and set to the additional architectures
that need to be compiled in. So on alpha I set CROSS_TOOLS = i386.
On i386 you can't build alpha due to lack of 64-bit support on 32-bit
architectures, but that's a GNU problem.

This change relies on makefiles in the binutils sub-directories having
the extension defined in the CROSS_TOOLS, instead of those makefiles
being selected based on the host architecture.
1998-05-04 21:10:56 +00:00
bde
2fe6b18aba Simplified using new yacc rules. This is cosmetic - the old rules
worked because .ORDER prevented problems from concurrent generation
of multiple parsers (and their headers), and there were no missing
dependencies because the generated headers were not actually used.
1998-05-04 17:56:22 +00:00