Commit Graph

3720 Commits

Author SHA1 Message Date
kan
ebf45ed0c9 Update bmake glue to build GCC 4.2.
Also:
        Switch FreeBSD to use libgcc_s.so.1.

        Use dl_iterate_phdr to locate shared objects' exception frame
        info instead of depending on older register_frame_info machinery.
        This allows us to avoid depending on libgcc_s.so.1 in binaries
        that do not use exception handling directly. As an additional
        benefit it breaks circular libc <=> libgcc_s.so.1 dependency too.

        Build newly added libgomp.so.1 library, the runtime support
        bits for OpenMP.

        Build LGPLed libssp library. Our libc provides our own
        BSD-licensed SSP callbacks implementation, so this library
        is only built to benefit applications that have hadcoded
        knowledge of libssp.so and libssp_nonshared.a. When linked
        in from command line, these libraries override libc
        implementation.
2007-05-19 04:25:59 +00:00
kan
5d4b28ff73 Remove extern int verbose declaration. It is declared static in the
only file it is used in.
2007-05-19 03:23:43 +00:00
kan
5b32f4b96f Fix static/extern mismatch by patching corresponding tdep files
in-place.
2007-05-19 03:22:19 +00:00
marcel
6a4e53f39d Add threading support. 2007-05-01 18:29:34 +00:00
kan
f85d4141ea Minor Makefile cleanup. Do not use Makefile variables named 'version' and
'target'. Latter is problematic in particular as apparently FreeBSD's
bsd.prog.mk re-defines it under some circumstances. This causes an
unexpected failures like -dumpmachine not working for cc while working
fine for c++.

Do not re-define IN_GCC in multipe places, it gets inherited from
Makefile.in anyway.

PR:		gnu/110143
Submitted by:	usleepless at gmail
2007-03-12 00:28:06 +00:00
kib
5b0899cab6 Unbreak the kgdb stepping over the special frames on i386 after rev. 1.117 of
i386/i386/exception.s.

No objections from:	marcel
2007-03-01 13:56:08 +00:00
kib
f680330859 Rename lookup() to kgdb_lookup() and make it global (for use in trgt_i386.c).
No objections from:	marcel
2007-03-01 13:55:15 +00:00
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
obrien
a78f3f2302 Move to more global Makefile.tgt vs. having to define in the leaves. 2006-09-12 07:37:44 +00:00
obrien
26e5f5c59e Default to big endian ARM if "TARGET_BIG_ENDIAN" is defined, and set an ARM
target default.
2006-09-12 07:37:02 +00:00
obrien
a43aa801ce Default to big endian ARM if "TARGET_BIG_ENDIAN" is defined (& targeting ARM). 2006-09-12 07:09:45 +00:00
obrien
1a1b7c160c Craft the FreeBSD/ARM ABI by hacking the New ARM ABI source.
Submitted by:	cognet
2006-09-12 07:03:58 +00:00
obrien
611804cd1c Default vector to big endian ARM if "TARGET_BIG_ENDIAN" is defined. 2006-09-12 07:02:15 +00:00
obrien
5945365a2c Build 'ld' supporting a big endian ARM if "TARGET_BIG_ENDIAN" is defined. 2006-09-12 06:59:39 +00:00
obrien
e5aca57eb8 Configure for for big endian if TARGET_BYTES_BIG_ENDIAN is defined. 2006-09-12 06:39:27 +00:00
obrien
b41312be09 Define build 'as' TARGET_BYTES_BIG_ENDIAN if "TARGET_BIG_ENDIAN" is defined.
This is needed for bi-sex architectures.
2006-09-11 18:07:09 +00:00
imp
1173d87244 Fix three whitespace nits.
I think these are from kan@...
2006-09-11 05:12:12 +00:00
jhb
3bdf41a5e4 Use the pcb in stoppcbs[] if it is present for threads that were running
on other CPUs in system when a dump is written.

Submitted by:	ups
Reviewed by:	marcel
MFC after:	3 days
2006-08-25 16:20:17 +00:00
marcel
693fc69022 Add initial support for kgdb(1) on PowerPC. 2006-08-24 21:53:49 +00:00
marcel
06caf42da4 Build gdb on PowerPC. 2006-08-24 15:46:29 +00:00
marcel
947473fc96 Add basic support for PowerPC. This excludes kgdb(1). 2006-08-24 02:44:59 +00:00
marcel
ed7e530450 Add rs6000 to the architectures on PowerPC. It's needed by gdb(1). 2006-08-24 02:36:21 +00:00
jhb
bdd032b9cb Remove special handling for PC == 0. With this, kgdb can now properly
unwind across a page fault due to a null function pointer.  It does a
better job than ddb now in fact.

Reviewed by:	marcel
MFC after:	3 days
2006-08-23 19:16:17 +00:00
ru
557b37c8db Remove alpha-specific stuff.
Approved by:	marcel
2006-08-23 12:14:26 +00:00
marcel
527f3d6e4f Build gperf(1) for/on PowerPC. There's no apparent reason not to
build it and nothing can be found in the commit logs. We won't
know if there are runtime problems, until we build it...
2006-08-21 18:25:43 +00:00
kan
c417a693c2 Update libsupc++ to include missing files. This was fixed in libstdc++
a long time ago, but libsupc++ was left out somehow,

PR:	gnu/99702
Submitted by:	George Mitchell
2006-08-19 00:52:54 +00:00
ru
09aff4db42 How stupid of me. :>> doesn't change a modification time. 2006-08-14 13:02:01 +00:00
ru
d69f9d6d01 - Include bsd.own.mk early so existsence check using ${SHAREDIR}
actually works.
- Touch /usr/share/tmac/man.local if it already exists.

MFC after:	3 days
2006-08-14 12:21:57 +00:00
ru
f9958c7d6d Touch locale' and se_locale' if they exist to stop people from
thinking they are obsolete.

Prodded by:	kris
Submitted by:	des
MFC after:	3 days
2006-08-14 12:10:54 +00:00
obrien
266bbefeb2 Fix typo.
Submitted by:	kevlo
2006-08-10 16:39:55 +00:00
ru
e813d81ecb Add FreeBSD 6.2 to the list of known versions. 2006-08-08 19:47:10 +00:00
yar
b7e4e41028 Add libbsm to the list of our standard libraries.
Approved by:	ru
2006-08-05 20:38:23 +00:00
obrien
100c4dc194 Add initial platform support.
Submitted by:	cognet
2006-07-22 15:27:18 +00:00
obrien
eba71ad06c Add ARM platform Makefile for building BFD. We include the New ARM ABI only.
(rev 1.1 was an accidental commit)
2006-07-22 14:55:55 +00:00
obrien
b3f14c6784 Be consistent in quoting. 2006-07-22 14:37:17 +00:00
obrien
977a067cb1 Create a genscripts driver based on the PowerPC one. 2006-07-22 14:36:15 +00:00
obrien
dbb7ecef21 The platform name is ARM not StrongARM.
Submitted by:	cognet
2006-07-22 14:12:02 +00:00
ceri
4845223ab6 Add the sun4v category.
Requested by:	linimon, kmacy
X-MFC:		Instant
2006-07-17 10:36:56 +00:00
kan
54651f17aa Garbage collect library we did not compile for ages. 2006-06-06 19:31:45 +00:00
ru
2517bd3f8f Clean the product of patch(1). 2006-04-10 09:00:19 +00:00
jmg
eb74e00e0c bring in the necessary changes to make gdbserver compile and work (at
least on i386)...  fbsd-* changes started out as s/linux/fbsd/g and then
additional changes to handle different ptrace defines among other things..
(use vfork to eliminate a race for progress group creation)

reg-i386.c is generated by regdat.sh..
2006-04-06 22:24:01 +00:00
jmg
0bf49b8fa9 This commit was generated by cvs2svn to compensate for changes in r157571,
which included commits to RCS files with non-trunk default branches.
2006-04-06 21:32:05 +00:00
jmg
b76dbd3b4f import gdbserver Linux files renamed to fbsd... I have made gdbserver
work w/ minor modifications to these files, so keep the history...

These are stock files from GDB 6.1.1 w/ only the filename s/linux/fbsd/g
2006-04-06 21:32:05 +00:00
jmg
f5c09c6027 remove these vestiges of gdbserver.. It hasn't built in a long time, and
now really belongs in gdb, not binutils..  Plus, these don't resemble what
the new gdbserver looks like.
2006-03-31 00:37:42 +00:00
ache
496f6d5a44 Upgrade to 5.1 2006-03-27 23:35:05 +00:00
ru
09fb328353 Desupport the *_COLLECT2 no-op. 2006-03-21 08:59:36 +00:00
ru
5f8b6d3c5a Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
ru
388e590f95 Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
ru
38ea5a1166 NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
tjr
0162e627f8 Correctly locate the character preceeding the matched string in -w
mode when in non-UTF-8 multibyte locales (e.g. EUC, GB2312, etc.).

PR:		91909
2006-02-19 04:27:39 +00:00
jkim
a40b4d8d50 - Add default choice option for --yesno box.
- Reduce trivial code duplications.
2006-02-07 20:14:07 +00:00
davidxu
23067f406e Introduce a new proc service routine ps_linfo() to get LWP info. 2006-02-07 02:29:55 +00:00
davidxu
0fdc8d7b72 1. Eliminate compile warnings.
2. Add command 'thread signal' to print out current thread's signal mask
   and pending signals.
2006-02-06 06:07:56 +00:00
ru
729a1ef9f4 Don't pollute output when "make" is run with -s.
Approved by:	kan
2006-01-14 20:48:50 +00:00
ru
2d1aacc056 Remove releases now found in Groff sources. 2006-01-12 15:33:18 +00:00
kan
de096a0825 Add -w parameter which tells kgdb to open kmem-based targets in read-write
mode. This allows one to use kgdb on /dev/mem and be able to patch memory
on a live system. This is identical to what -wcore used to do in previous
gdb versions for FreeBSD.

Requested by:	wpaul
2006-01-04 23:17:52 +00:00
dfr
d9cbcb50b5 Add a new extensible GSS-API layer which can support GSS-API plugins,
similar the the Solaris implementation. Repackage the krb5 GSS mechanism
as a plugin library for the new implementation. This also includes a
comprehensive set of manpages for the GSS-API functions with text mostly
taken from the RFC.

Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)
2005-12-29 14:40:22 +00:00
ru
c86d328d07 Fix a markup nit.
PR:		docs/88848
Prodded by:	remko
2005-12-18 12:09:23 +00:00
ru
6e96e6259d Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.
Reviewed by:	nyan
2005-12-05 14:22:12 +00:00
joel
255af8bec3 Add entry for 6.1. 2005-11-24 17:28:43 +00:00
ru
03dcfc1488 doc sweep 2005-11-17 12:16:33 +00:00
delphij
c4f51b4051 Suggest the user to use 'diff -urN' instead of 'diff -crN'.
Submitted by:	Jimmie James  <jimmiejaz@gmail.com>
PR:		docs/88427
2005-11-03 03:49:57 +00:00
obrien
1d93f083bf Locate __FreeBSD_cc_version's value beside __FreeBSD__'s value to make it
easier to keep them in sync.
2005-10-30 19:04:47 +00:00
obrien
6678b4722a Catch up with FreeBSD 7. 2005-10-29 09:13:31 +00:00
marcel
52c3518dcc Fix dump of the unread portion of the kernel message buffer.
PR: bin/87964
Submitted by: Frank Mayhar	frank at exit dot com
2005-10-26 02:22:28 +00:00
tjr
64e3944dba Fix 'grep -Fw' for encodings other than UTF-8 (RH bug #161700).
PR:		87969
Obtained from:	Fedora (Tim Waugh)
2005-10-25 09:18:50 +00:00
obrien
13cab18c90 Add vim syntax highlighting support to the send-pr(1) utility.
PR:		35333
Submitted by:	Hendrik Scholz <hendrik@scholz.net>
2005-10-24 01:36:16 +00:00
stefanf
34d1b4d779 Document [:blank:]. 2005-10-23 11:19:56 +00:00
jkim
c5ecef48ae Remove redundant string length check from the previous commit. 2005-10-21 15:17:18 +00:00
jkim
96a3131530 Fix a longstanding buglet in bz-prefixed grep(1). 2005-10-20 21:50:44 +00:00
ru
fcc15dc5a9 Remove some conversion leftovers. 2005-10-20 11:10:43 +00:00
ru
a2a31abeb1 Upgrade to Groff 1.19.2. 2005-10-20 10:57:53 +00:00
tjr
f01b4c00f2 Compile with -DHAVE_LSTAT since, for whatever reason, the configure script
shipped with GNU cpio 2.6 fails to test for it.
2005-10-06 09:49:37 +00:00
tjr
7c13f400d5 Define HAVE_MKFIFO and HAVE_SETLOCALE here since the configure script
apparently fails to do it.
2005-10-01 06:35:58 +00:00
tjr
d2ed906427 Update for GNU cpio 2.6. 2005-10-01 04:57:01 +00:00
peter
b568c68740 Unbreak - remove leftover reference to pcb_rflags. 2005-09-28 07:40:27 +00:00
kan
6adebfab81 Include <sys/defs.h> to get __ISO_C_VISIBLE definition is one is not
already available.
2005-09-16 21:24:10 +00:00
kan
dafff159c4 Do not expose vfwscanf, vswscanf, vwscanf and wcstof functions if
they are not visible from wchar.h.
2005-09-16 20:56:17 +00:00
marcel
95c333b219 Claim frames corresponding to tl(0|1)_intr and tl0_trap as well. I
think that's the lot, but it's hard to understand the exception code
by mere glancing at it.

MFC after: 1 week
2005-09-11 06:52:14 +00:00
marcel
afc227eedb Unwind across intrframes as well. While here, better handle bottom of
stack by claiming the frame when the IP is 0. It's a bit of a kluge,
but avoids screens full of bogus frames.

MFC after: 1 week
2005-09-11 05:55:24 +00:00
marcel
5c551253ea Unwind across intrframes as well.
MFC after: 1 week
2005-09-11 05:36:30 +00:00
marcel
8b1d37e93e Unwind across trap frames. Handles all entry points, except the EPC
syscall. This is an entry from userland anyway.

MFC after: 1 week
2005-09-11 00:47:03 +00:00
marcel
63c6575f86 Unwind across trapframes. All kernel entries are handled.
MFC after: 1 week
2005-09-10 23:11:54 +00:00
marcel
1537de4a54 Unwind across trap frames. This adds most of the meat. The sniffer
just needs to be taught about all the other entry points and the
unwinder needs to be taught about the frame variation between them.

MFC after: 1 week
2005-09-10 22:03:09 +00:00
marcel
afef46c1a0 Unwind across trap frames. This adds most of the meat. The sniffer
just needs to be taught about all the other entry points and the
unwinder needs to be taught about the frame variation between them.

MFC after: 1 week
2005-09-10 21:01:36 +00:00
marcel
853fa27dc1 Unwind across trap frames. This adds most of the meat. The sniffer
just needs to be taught about all the other entry points and the
unwinder needs to be taught about the frame variation between them.

MFC after: 1 week
2005-09-10 20:12:52 +00:00
marcel
d05b9c6e82 Add a kluge to allow kgdb(1) to inject its own frame sniffer in the
list of frame sniffers so that trapframes can be detected. The kluge
is needed because this version of gdb only supports appending a
sniffer to the list of sniffers and the moment kgdb gets a chance to
add its own frame sniffer, the target's default frame sniffer is
already in the list. Since the default frame sniffer claims any
frame thrown at it, kgdb's frame sniffer never gets to smell (a
process much akin to tasting, but with lesser chance of hurling :-)

This commit adds dummy frame sniffers that never claim a frame and
as such don't fix anything yet. However, we now have frame sniffers
and they are being called, so it's just a matter of adding meat to
the bones and we'll be able to properly unwind across trapframes.

MFC after: 1 week
2005-09-10 18:25:53 +00:00
keramida
19c606064a Expand a bit the description of the -t option.
Triggered by:	Stijn Hoop <stijn@win.tue.nl>
		on freebsd-questions
2005-09-09 11:29:51 +00:00
garys
4b04d92787 Added ENVIRONMENT section (PAGER, MANPATH, etc.).
PR:             docs/84485
Submitted by:   garys
Approved by:    keramida
MFC after:      3 days
2005-09-01 01:00:55 +00:00
trhodes
0a274a0672 Do not place paragraph information post-macro unless required by mdoc(7). 2005-08-20 10:17:03 +00:00
cperciva
563a2851b1 Repeatability is Considered Good when building this library, too. (And
I think this is the last one which needs it.)
2005-08-17 15:46:18 +00:00
cperciva
28bdebaa08 Add -frandom-seed=RepeatabilityConsideredGood to CFLAGS. This makes
this library build repeatably.  (This change was made to libstdc++
several months ago; I just realized today that it would help here as
well.)

Approved by:	kan
2005-08-17 01:59:10 +00:00
marcel
fddce319d2 Fix backtraces. Supply registers from the register window.
MFC after: 3 days
2005-08-16 05:13:57 +00:00
phk
ff7f5068f0 Control rcs inclusion with NO_RCS insted of NO_TOOLCHAIN 2005-08-06 20:23:13 +00:00
marcel
b8c1757032 o Remove the obscure tid command, because it does what the thread
command does, but worse.
o  Remove the obscure proc command, because it does what the thread
   command does, but not unambigously.
o  Move the PID to the extra thread info, where it makes sense and
   where it doesn't confuse users. The extra thread info holds some
   process information, to which the PID belongs.
o  Implement the to_find_new_threads target method by having it call
   the target beneath us if we're not using KVM. This makes sure that
   new threads are found when using the remote target.

o  Fix various core dump scenarios:
   -  Implement the to_files_info target method. Previously the
      'info target' command would cause a NULL pointer dereference.
   -  Don't assume there's a current thread. We're not initialized
      in all cases. This prevents a NULL pointer dereference.
   -  When we're not ussing KVM, have the to_xfer_memory target
      method call the target beneath us. This avoids calling into
      KVM with a NULL pointer.

MFC after: 1 week
2005-08-06 19:22:27 +00:00
marcel
dd65af4600 o As mentioned in the previous commit: make the KVM error buffer
static.
o  Register a function with atexit(3) to close the KVM object if
   we have one open.
o  Show the unread portion of the kernel's message buffer before
   presenting the prompt. It's bound to provide some useful info.
o  Don't call kgdb_target() twice. It results in having all threads
   listed twice.

MFC after: 1 week
2005-08-06 19:07:07 +00:00
phk
e3482153d0 let NO_MAN control man
let NO_TOOLCHAIN control rcs
let NO_INFO control texinfo
2005-08-05 16:08:53 +00:00
phk
e5975d2918 Respect NO_EXAMPLES 2005-08-05 16:04:54 +00:00
phk
96cee04ef8 Don't install groff if NO_GROFF 2005-08-03 09:22:42 +00:00
keramida
5f3be39f8f Spell "currently" correctly. 2005-07-28 15:59:52 +00:00
kensmith
f97f77429f Bump the shared library version number of all libraries that have not
been bumped since RELENG_5.

Reviewed by:	ru
Approved by:	re (not needed for commit check but in principle...)
2005-07-22 17:19:05 +00:00
wosch
4c1147c9b5 remove myself as maintainer. 2005-07-17 21:18:09 +00:00
rwatson
7da3a4e78f Hook up libmemstat(3) to the library list in mdoc.local. This will cause
the library description (specifically, -lmemstat) to render properly in
the libmemstat.3 man page.

Submitted by:	ru
MFC after:	1 week
2005-07-15 10:27:35 +00:00
kensmith
2797073b67 Adjust for HEAD being 7.0 now.
Approved by:	re (implicit)
2005-07-11 15:50:29 +00:00
peter
756b97ccf0 kvm_openfiles() uses the supplied buffer for storing error messages
in future calls, so we can't free it here.  The right place to free the
buffer would be to be after kvm_close(), but we don't do that yet.  A
static buffer would work too.

Reviewed by:  marcel (who has other plans for this anyway)
Approved by:  re
2005-06-24 00:50:12 +00:00
ru
b61cd48c52 A number of manpages already use ``.Fx 5.5'', define it.
Approved by:	re (blanket)
2005-06-16 21:13:20 +00:00
ceri
1360535750 1. Add the threads and usb categories.
2. Fill in the blanks on the advocacy category.
3. Expand a contraction while I'm in here.

Prodded by:	simon (1)
Approved by:	re (hrs)
MFC after:	5 days
2005-06-16 19:27:12 +00:00
ru
583f68919d Clean up after the last change -- remove now stale comment. 2005-06-10 07:06:07 +00:00
des
2bb8de20fe Remove kludges intended to support src trees with partial obj trees.
Discussed with:	ru
2005-06-10 06:12:53 +00:00
simon
cf5f249f1e Correct directory traversal and race condition vulnerabilities in gzip.
Security:	FreeBSD-SA-05:11.gzip
Security:	CAN-2005-0988, CAN-2005-1228
Obtained from:	Steve Grubb via RedHat, Debian
Approved by:	nectar
2005-06-08 21:25:19 +00:00
imp
74bccf229d Tidy up cvs entries 2005-06-03 15:08:30 +00:00
kan
f1ee3b8b53 Update bmake glue for GCC 3.4.4. 2005-06-03 04:21:04 +00:00
tjr
4f902fd545 Pass the RE_ICASE flag to re_set_syntax() as appropriate to fix
case-insensitive matching (-i option) in certain multibyte locales.

Obtained from:	Fedora
2005-05-31 12:49:04 +00:00
dfr
874478d7fd Add support for XMM registers in GDB for x86 processors that support
SSE (or its successors).

Reviewed by: marcel, davidxu
MFC After: 2 weeks
2005-05-31 09:43:04 +00:00
ru
7458d315c1 Update for texinfo 4.8. 2005-05-23 10:52:07 +00:00
tjr
3c94ccdb45 Add a note explaining what local modifications have been made to GNU grep,
and giving advice on importing future releases.
2005-05-14 06:33:23 +00:00
tjr
2f499f9763 Fixed -w handling for EGexecute.
Obtained from:	Fedora (Tim Waugh)
2005-05-14 06:13:23 +00:00
tjr
5364440b9f Automatically disable DFA when processing multibyte input. GREP_USE_DFA
environment variable overrides.

Obtained from:	Fedora (Tim Waugh)
2005-05-14 06:12:03 +00:00
tjr
bff87236c6 Better multibyte handling in EGexecute() and Fexecute(). Fixed -Fi for
multibyte input (RH bug #143079).

Obtained from:	Fedora (Jakub Jelinek, Tim Waugh)
2005-05-14 06:09:12 +00:00
tjr
e8d95bb287 Removed redundant (and incorrect) code in prline. Fixes grep -i --color "",
among other things.

PR:		79063
Obtained from:	Fedora (Tim Waugh)
2005-05-14 05:35:04 +00:00
tjr
a47b9a8adc Fix background colour problems with --color output (RH bug #138913).
Obtained from:	Karsten Hopp via Fedora
2005-05-14 05:26:48 +00:00
tjr
01956b0d09 Fixed a bug in the fgrep patch, exposed by the dfa-optional patch
(RH bug #138558). Removed bogus part of grep-2.5.1-fgrep patch.

Obtained from:	Fedora (Jakub Jelinek, Tim Waugh)
2005-05-14 04:17:07 +00:00
tjr
b191ef00d8 Fix dfa multibyte character class matching when -i is used (RH bug #123363).
Obtained from:	Fedora (Tim Waugh)
2005-05-14 03:18:20 +00:00
tjr
e4b49c8498 Remove mb-caching hack.
Obtained from:	Fedora (Tim Waugh)
2005-05-14 03:02:22 +00:00
tjr
67950e3bcf This commit was generated by cvs2svn to compensate for changes in r146052,
which included commits to RCS files with non-trunk default branches.
2005-05-10 13:01:37 +00:00
tjr
a093ce42b9 Update instructions to match recent import. 2005-05-10 12:04:01 +00:00
tjr
c9931f2fee Update build infrastructure for new GNU regex bits. 2005-05-10 11:37:37 +00:00
tjr
49c97fda38 Merge. Discard local bracket expression collating order patch, since
modern versions of GNU regex already do things the way we want when
multibyte character support is enabled.
2005-05-10 10:52:30 +00:00
tjr
fdedb1a0cc This commit was generated by cvs2svn to compensate for changes in r146040,
which included commits to RCS files with non-trunk default branches.
2005-05-10 10:39:53 +00:00
tjr
113e755bc8 Import of regex bits from fedora-glibc-2_3_4-21 tag in glibc CVS. 2005-05-10 10:39:53 +00:00
davidxu
f305634ad3 Don't try to enable event reporting for core file, it is not writable. 2005-05-06 11:01:15 +00:00
peter
bc1c95b7c5 Turn on libobjc.so for all platforms on -current. It didn't work back
in 1996.
2005-05-01 01:59:48 +00:00
trhodes
a9041ad05e Enforce style.Makefile(5).
Glanced at by:	ru (some time ago).
2005-04-22 18:57:32 +00:00
jkoshy
aa72c1de5f Capitalize words in library description.
Submitted by:	ru
2005-04-19 13:26:58 +00:00
jkoshy
dc3444cd91 Bring a working snapshot of hwpmc(4), its associated libraries, userland utilities
and documentation into -CURRENT.

Bump FreeBSD_version.

Reviewed by:	alc, jhb (kernel changes)
2005-04-19 04:01:25 +00:00
davidxu
a072bd5e74 Report events from thread library. 2005-04-12 03:04:04 +00:00
davidxu
f49d76552d Print thread address.
PR: threads/76821
2005-04-05 11:40:58 +00:00
das
660dab49e8 Teach libstdc++ about frexpl() and ldexpl(). 2005-03-26 08:27:53 +00:00
kientzle
91e20dfee4 Stop building gtar. Bump __FreeBSD_version to reflect this change. 2005-03-21 05:30:58 +00:00
kientzle
0069c3a218 Ooops. Correctly disable "tar"->"gtar" link.
Thanks to: Simon L. Nielsen, who was the first of
    several people to point this out. <sigh>
2005-03-21 04:02:42 +00:00
kientzle
c74d7d94bd Deorbit gtar, step 1: Remove WITH_GTAR knob.
"tar" is now always a synonym for "bsdtar".
  People who need gtar can access it as "gtar."

Approved by:	No objections on arch@
2005-03-20 20:38:46 +00:00
marcel
d810912cf5 Implement and document the -q and -f options with their corresponding
long form (-quiet and -fullname resp.) Bump documentation date.

PR: bin/78031
MFC after: 5 days
2005-03-02 18:40:04 +00:00
obrien
33b81ea30f .It the -v option. 2005-03-01 20:41:38 +00:00
ru
bc73e0ad82 Fixed compilation warnings. 2005-02-21 21:02:25 +00:00
kan
a73cb310d2 Restore r1.2 change to use TARGET_ARCH.
Submitted by:	kris
2005-02-20 23:06:03 +00:00
kan
858ff332fa Attempt to make kgdb little more useful and easy to use. Properly initialize
it to recognise what ABI  to use on amd64 (and possibly others) platform.
Display PID and process name as a part of the 'info threads' output, TIDs
alone are too confusing. Introduce new commmands 'tid <tid>' and 'proc <pid>'
to accompany gdb's default 'thread <thread num>' to make the task of switching
between different contexts easier.
2005-02-20 22:55:07 +00:00
ru
136924cea4 Expand contractions. 2005-02-15 09:27:00 +00:00
marcel
9a64d9e899 Remove mention of the -k and -wcore options because they don't
exist anymore.

PR: doc/70943
Submitted by: Jun <junsu at delphij dot net>
Reviewed by: delphij
2005-02-15 07:13:51 +00:00
obrien
b8e733bd9d Use the system gnuregex library vs. building GNU regex bits into libiberty
and using them.

Reviewed by:	marcel,imp
Desired by:	ache
2005-02-14 12:10:14 +00:00
obrien
55d920055d Fix regression in output with -R compared to previous version.
PR:		77466
Submitted by:	Andre Guibert de Bruet <andy@siliconlandmark.com>
2005-02-13 23:07:30 +00:00
ru
1541af42f1 Expand *n't contractions. 2005-02-13 22:25:33 +00:00