Commit Graph

3563 Commits

Author SHA1 Message Date
emaste
13b4da30e0 Avoid writing uninitialized stack data into a thread's MMX/SSE state by
first getting the current state with td_thr_getxmmregs_p.  Without this,
debugging a threaded app that uses libthr resulted in kernel panics or
spurious SIGFPEs for me.

(As of revision 1.6, sys/i386/i386/ptrace_machdep.c masks off the
reserved bits in the mxcsr register, which prevents the kernel panics.)

Architectures without PT_GETXMMREGS are not affected.

MFC after:      1 week
2007-02-20 18:10:13 +00:00
marcel
3c925b07d6 Fix PowerPC-targeted cross-builds performed on 64-bit platforms.
Only PowerPC supports both 32-bit and 64-bit targets and the
BFD_DEFAULT_TARGET_SIZE is used by the binutils code to reflect
the preferred ABI. We define BFD_DEFAULT_TARGET_SIZE for all
platforms, but based on the build machine. As such 64-bit build
machines defined BFD_DEFAULT_TARGET_SIZE incorrectly for 32-bit
targets, but since this only affects PowerPC it went unnoticed
for a long time.
The fix is to define BFD_DEFAULT_TARGET_SIZE based on the target
architecture.

PR: amd64/102996
MFC after: 1 month
2007-02-11 07:15:06 +00:00
delphij
6a5f85cc03 Remove GNU gzip left-offs, they are no longer necessary. 2007-01-31 03:44:42 +00:00
delphij
2089860135 Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

 - Because this is a piece of mature code and we want to make
   changes so it is added directly rather than importing to
   src/contrib.
 - Connect newly added code to src/usr.bin/ and rescue/rescue
   build.
 - Disconnect the GNU gzip code from build for now, they will
   be eventually removed completely.
 - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
   WITHOUT_BZIP2.

Tested by:	kris (full exp-7 pointyhat build)
Approved by:	core (importing a 4-clause BSD licensed file)
Approved by:	re (adding new utility during -HEAD code slush)
2007-01-26 10:19:08 +00:00
rodrigc
5ecf1e9826 Try to avoid a possible infinite loop when parsing an invalid kernel dump file.
PR:		108229
Submitted by:	Jessica Han <jessicah juniper net>
Reviewed by:	marcel
MFC after:	1 week
2007-01-25 06:39:25 +00:00
ache
551798c6ac Change RL_LIBRARY_VERSION 2006-12-31 09:27:16 +00:00
ache
c3c4d6ad1b Update config 2006-12-31 09:26:00 +00:00
ru
f9d1382685 -mdoc knows about FreeBSD 7.0 as well.
Reminded by:	ceri
2006-12-29 06:22:13 +00:00
ru
bdaa38dc41 Markup revision. 2006-12-25 15:09:06 +00:00
ru
0e3b49a9c1 FreeBSD 5.5 is part of official -mdoc. 2006-12-25 09:09:47 +00:00
ru
d5addbe902 Fix markup, remove a dummy BUGS section. 2006-12-24 23:07:11 +00:00
ru
fb5ffbe0ec Add missing articles. 2006-12-23 23:26:05 +00:00
ru
6fdf8489ec Teach mdoc(7) about FreeBSD/arm and FreeBSD 6.3; both needed by the
npe(4) manpage.
2006-12-05 17:01:23 +00:00
jkoshy
62913629e6 MFP4: Add an implementation of the ELF(3) and GELF(3) API set.
Bump __FreeBSD_version.

Reviewed by:	jb
2006-11-11 17:16:35 +00:00
obrien
6e5c698f67 Remove gratuitous white space change. 2006-11-06 02:49:19 +00:00
obrien
7edb659ec4 Allow one to force with issue with 'TARGET_BIG_ENDIAN'. 2006-11-06 02:32:29 +00:00
philip
a64b469a29 Fix vim syntax highlighting. Vim complained about the (comment). The syntax
file is also called "sendpr", not "send-pr".
2006-11-01 12:13:08 +00:00
ru
fc876fdc9e Bump document date for the previous change. 2006-10-21 17:39:35 +00:00
jmg
d571cf9da2 Turn on gdbserver for the arch that supports it.. 2006-10-21 17:27:36 +00:00
jhb
21fce90fb9 Trim trailing whitespace. 2006-10-16 20:07:23 +00:00
jhb
a75ada9559 Restore the 'proc' and 'tid' commands which allow one to switch to the
first thread in a process or to a specific thread via PIDs and TIDs,
respectively.

Submitted by:	kan
Approved by:	marcel
2006-10-16 20:06:32 +00:00
ceri
d16480f34d Update the FILES section which has been wrong for some time.
MFC after:	3 days
2006-10-15 11:50:11 +00:00
ceri
d52521898e Add the sun4v category.
Reminded by:	ru
MFC After:	1 re approval
2006-10-15 11:43:42 +00:00
cognet
f2ac62bb14 Don't build the libgcc with functions already included in the libc to
unbreak the build.
We'll switch back to the libgcc functions and get rid of the libsoftfloat
later.
2006-10-12 16:43:15 +00:00
obrien
30402bd446 Document '-w' from main.c rev. 1.11. 2006-10-11 14:42:43 +00:00
trhodes
cb84ecb15c Add the -P option back, but with a note that it is not supported on FreeBSD.
Requested by:	ru
2006-10-11 09:52:32 +00:00
trhodes
6bf3709af8 grep -P xxx file.txt
"The -P option is not supported"
Removed from the manual page via this commit.

PR:	99831
2006-10-10 01:57:25 +00:00
kmacy
8bcce69475 Temporarily add newer copy of tc-sparc.c to build to
support building of sun4v. This can be removed once
the binutils import happens.

Reviewed by: kan
Approved by: rwatson (mentor)
2006-10-09 04:52:14 +00:00
obrien
25f4754ec5 The ARM platform does the setjmp/longjmp type of exception handling. 2006-10-05 20:55:37 +00:00
imp
8817afd4b7 Enable gdb on the arm. Some time ago I committed it, but had forgotten to
enable it here.

Noticed by: cognet
2006-10-03 00:03:30 +00:00
ru
be4f7e296e Fix build due to the incomplete removal of demangle.h. 2006-09-30 12:52:15 +00:00
kan
c8ba43b1fd Reduce diffs with file generated by FSF configure. 2006-09-22 15:08:07 +00:00
ru
36d936524c Prepare to pick up manpages from their new location. 2006-09-21 07:52:41 +00:00
kan
7f7d9b2692 Bump __FreeBSD_cc_version in case someone cares for differences between
GCC 3.4.4 and GCC 3.4.6 on -current.
2006-09-21 03:27:07 +00:00
simon
a1f5a11feb Correct multiple vulnerabilities in gzip(1).
Security:	FreeBSD-SA-06:21.gzip
2006-09-19 14:06:20 +00:00
imp
3f3c42f60e Add additional support for generating code for the arm. There's still
a few issues in other parts of the tree, but those will be resolved
separately.

Submitted by: cogenet@
Reviewed by: kan@, obrien@
MFC After: 5 days
2006-09-18 17:08:32 +00:00
ru
c1cc0912e1 This is not needed since src/gnu/usr.bin/cc/cc_int/Makefile,v 1.34. 2006-09-16 09:09:44 +00:00
ru
6b78b3a81d Remove vestiges of GNU tar. 2006-09-15 08:04:23 +00:00
imp
35f71d316f A TARGET_CPU_DEFAULT of xscale for arm results in illegal instructions
during buildworld.  Comment it out for now.
2006-09-15 05:21:06 +00:00
imp
2ad94565b4 Remove redundant default vector
Submitted by: ru@
2006-09-14 08:21:20 +00:00
imp
ccf269aef7 Add cross debug support to arm.
Submitted by: cognet@
2006-09-14 07:51:52 +00:00
imp
b39fe59680 fix the build: add missing end of line cont character 2006-09-14 07:48:16 +00:00
imp
75f1f3b6a1 scripts for the arm port.
Submitted by: cognet@
Reviewed by: obrien and kan
2006-09-14 07:46:32 +00:00
imp
77431c17db Fix the build and minor cleanup. 2006-09-14 07:44:05 +00:00
imp
0be173e15e .end -> .endif 2006-09-14 07:02:17 +00:00
imp
01cb50b4e4 Architecture specific portions of gdb for arm.
Submitted by: cognet@
2006-09-14 06:49:34 +00:00
imp
9fed87cdab Config file for arm assembler 2006-09-14 06:39:07 +00:00
imp
68381de49c TARGET_BIG_ENDIAN isn't appropriate here. __ARMEB__ is sufficient and
besides, TARGET_BIG_ENDIAN isn't defined anyway.
2006-09-14 06:36:13 +00:00
kan
fe0a1dc586 Remove redundant defines alerady set by Makefile.fe 2006-09-12 21:57:28 +00:00
obrien
c0b8338231 Style sync. 2006-09-12 19:24:01 +00:00