Commit Graph

1186 Commits

Author SHA1 Message Date
Alexander Langer 1295abe226 Removed /etc/ld.so.conf reference from FILES section (people get
confused when they can't find it), but leave the reference to it
as being a standard filename (which doesn't imply that it exists).

Discussed with:	jkh
1998-01-01 02:31:47 +00:00
Daniel O'Callaghan 52ebfb9d0f Submitted by: Peter Hawkins <peter@clari.net.au>
Actually implement --norecurse as documented in the man page.
1997-12-30 10:23:09 +00:00
Wolfram Schneider 6043106601 Check argument filename length before copying.
$ gzip `perl -e 'for(1..10240){ print "a"}'`
1997-12-27 03:38:39 +00:00
Wolfram Schneider 9c8ac6c742 Workaround to avoid a strange core dump.
gzip < /dev/null | perl -npe 's/\003\003/\003\225/' | gzip -d
1997-12-26 21:12:26 +00:00
Wolfram Schneider 1132c08dd8 Do not install the z*grep man pages if grep was linked with -lz. 1997-12-26 01:53:58 +00:00
Tim Vanderhoek dfb9495b2a Use consistent spelling,
writeable -> writable (recall prior debate over this? :-)
	initialise -> initialize
	recognise -> recognize

Merry Christmas! :)
1997-12-25 09:36:42 +00:00
Wolfram Schneider 15ec2a04f8 When called as `zgrep', the -Z argument is assumed. Make a
link from zgrep to grep.

Pointed out by: Tim Vanderhoek <hoek@hwcn.org> and
                Mike Smith <mike@smith.net.au>
1997-12-21 19:15:12 +00:00
Wolfram Schneider 00caa62588 Added zgrep.libz. This version of zgrep(1) depend on a
grep(1) linked with libz.
1997-12-20 19:20:33 +00:00
Wolfram Schneider 50cb810d2e Added a sparc category to the list. 1997-12-20 18:54:22 +00:00
Wolfram Schneider a6f4e3c4dc Added builtin decompression using zlib library, option -Z.
Enabled this new feature with the makefile variable GREP_LIBZ. If
you don't like it, compile with `make GREP_LIBZ='.

grep + zlib has several advantages:

- the shell script zgrep(1) will be basically a one line
  exec grep -Z "$@"

- no shell script, no bugs. The current zgrep implementations
  have many bugs and some grep options are no supported.

- no shell script, no security risks.

- it is a magnitude faster than a shell script

Also fixed:
0 -> STDIN_FILENO
Close a file descriptor only if the open call was successfully. It does
not hurt for the open(2) function, but the gzclose(3) function
died in free() to free up (not) allocated memory.
1997-12-20 18:46:09 +00:00
Bruce Evans a821e7134b Exec dmesg and awk to print everything in the message buffer
following "panic:" or "Fatal trap".  `panicstr' is still printed,
although it is redundant if there is a valid message buffer and
incomplete if it contains `%'s.  I think the awk command belongs
here and not in a script since a standard format with complete
messages is good for bug reports.
1997-12-19 21:37:18 +00:00
Bruce Evans c26f14e2b9 Fixed missing dependency on version.c.
Fixed some style bugs ($@ is not recommended ...).
1997-12-18 15:22:12 +00:00
Bruce Evans c0e045a84d <bsd.prog.mk> has always included ../Makefile.inc, and there are no
complications involving .PATH or dependencies, so don't include it here.
1997-12-17 20:22:34 +00:00
Bruce Evans cee45d9aa8 <bsd.prog.mk> has included ../Makefile.inc for a long time, and there
are no complications involving .PATH or dependencies, so don't include
it here.
1997-12-17 19:57:35 +00:00
Bruce Evans f34b67af93 Don't use LDDESTDIR. Just put the -L arg in LDADD. 1997-12-17 15:11:43 +00:00
Bruce Evans 45c9cb5439 Use BINOWN, etc. instead of bin, etc. so that (this part of)
`BINOWN=... make world' can be run by users other than root.
1997-12-17 12:04:53 +00:00
Wolfram Schneider 8873fd5457 Use getopts instead getopt(1). This should fix the problem
with whitespaces in pattern.
PR:	5211
1997-12-07 01:00:56 +00:00
John Polstra 6210388a93 Make emacs work again. This is a workaround for the fact that the
emacs a.out file, self-generated by emacs's "unexec" function in
"unexsunos4.c", is invalid.  In particular, its "_end" symbol has
the wrong value.  The dynamic linker was using the value of that
symbol to initialize its sbrk break level.

The workaround is to peek at the executable's a.out header in
memory, and calculate what "_end" should be based on the segment
sizes.

I will work out a fix for emacs and send it to the FSF.  This
dynamic linker workaround is still worthwhile, if only to avoid
forcing all emacs users to build a new version.

Note: xemacs gives a bogus warning at startup, for related reasons.
The warning is harmless and can safely be ignored.  I will send a
patch to the xemacs maintainers to get rid of it, and meanwhile
add a patch file to our port.
1997-12-05 02:06:37 +00:00
Steve Price edec52ad1a Remove manpath.[ch] here and use the ones in ../manpath instead. 1997-11-30 20:08:27 +00:00
Steve Price 580e97a9d8 Resurrect manpath.c here. 1997-11-30 19:55:16 +00:00
Steve Price 609e31cc38 Remove this copy of manpath.c and add the .PATH directive to get to
the same file in ${.CURDIR}/../man.

Suggested by:	Bruce Evans
1997-11-30 17:17:29 +00:00
Steve Price bab06090f9 Always call gripe_reading_mp_config with the required arguments.
PR:		3894
Submitted by:	Stephen Clawson <sclawson@marker.cs.utah.edu>
1997-11-30 01:01:47 +00:00
John Polstra 08bdd3d27d Get rid of the dynamic linker's internal malloc package, and arrange
things so that it uses the same malloc as is used by the program
being executed.  This has several advantages, the big one being
that you can now debug core dumps from dynamically linked programs
and get useful information out of them.  Until now, that didn't
work.  The internal malloc package placed the tables describing
the loaded shared libraries in a mapped region of high memory that
was not written to core files.  Thus the debugger had no way of
determining what was loaded where in memory.  Now that the dynamic
linker uses the application's malloc package (normally, but not
necessarily, the system malloc), its tables end up in the regular
heap area where they will be included in core dumps.  The debugger
now works very well indeed, thank you very much.

Also ...

Bring the program a little closer to conformance with style(9).
There is still a long way to go.

Add minimal const correctness changes to get rid of compiler warnings
caused by the recent const changes in <dlfcn.h> and <link.h>.

Improve performance by eliminating redundant calculations of symbols'
hash values.
1997-11-29 03:32:48 +00:00
John Polstra 873954b327 In the "ldd -v" output, display the N_AUX information for each
symbol.  It indicates whether the symbol refers to a function or a
data object.
1997-11-28 19:34:27 +00:00
Bruce Evans a964cd4bba Implemented "info float" for core files.
Implemented reading of %fs and %gs from core files.

Print weird floating point values better.  We have to convert long
doubles to doubles here because of limitations and bugs in printf()
and floatformat_to_double() (long doubles aren't really supported
and naive converion to double causes exceptions).  Conversion loses
information about weird formats (everything becomes a quiet NaN),
and printf() doesn't know about different types of NaNs anyway.
1997-11-23 09:18:18 +00:00
John Polstra 14b94d0464 Add missing argument detected by "-Wformat". 1997-11-18 03:37:45 +00:00
Andrey A. Chernov 5a77e9d43b Define PR_PROGRAM properly 1997-10-29 17:35:54 +00:00
Andrey A. Chernov 53d4d0e441 Switch to contrib version 1997-10-29 16:58:20 +00:00
Andrey A. Chernov e4b6c3604e Switch to contrib version 1997-10-29 16:50:42 +00:00
Andrey A. Chernov cd56389a5d Switch to contrib version 1997-10-29 16:36:57 +00:00
James Raynard be4ad1aa3f Remove yet another superfluous file. 1997-10-26 12:53:16 +00:00
Andrey A. Chernov a1838c23b7 Add -funsigned-char to CFLAGS (for ctype macros) 1997-10-26 12:20:45 +00:00
Andrey A. Chernov 5a90c8dbf2 Add (unsigned char) cast to ctype macros 1997-10-23 02:44:23 +00:00
Andrey A. Chernov 93bb056022 Add (unsigned char) cast to ctype macros 1997-10-23 02:22:51 +00:00
Andrey A. Chernov 62fe88f9af Add unsigned char cast to ctype macros 1997-10-23 02:08:16 +00:00
Andrey A. Chernov 8b50620f9a Add (unsigned char) casts to ctype macros 1997-10-23 01:43:00 +00:00
Andrey A. Chernov d4efecb283 Do not use gawk random, we have better one in libc 1997-10-15 14:01:31 +00:00
James Raynard 4475598f18 Makefile for contributed version of awk. 1997-10-14 18:32:38 +00:00
James Raynard 60e8807fae Remove old version of awk. 1997-10-14 18:29:32 +00:00
Peter Wemm 5c97f357a9 #include <machine/tss.h> explicitly 1997-10-10 12:53:27 +00:00
Peter Wemm 67b76a559b If kerberos is installed and enabled in make.conf, activate cvs's kserver
hooks.  This is a lot safer than 'cvs pserver'.
1997-10-10 04:03:17 +00:00
Jordan K. Hubbard 97fe7f477f Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by:	<many different folks>
Submitted by:	Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
1997-10-05 09:40:24 +00:00
Joerg Wunsch b71ec8cc29 Nevermind... Wolfram already did it, but added the file (IMHO wrong)
to the contrib area so i didn't see it.
NB: RELENG_2_2 is still missing it (what's why i didn't see it in the
first place).
1997-09-29 14:27:55 +00:00
Joerg Wunsch 5b9dc35332 Add a stub man page for psroff(1). 1997-09-29 14:24:35 +00:00
Poul-Henning Kamp d030d2d2ae Many places in the code NULL is used in integer context, where
plain 0 should be used.  This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.

PR:		2752
Submitted by:	Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
Joerg Wunsch c6850a7698 Sigh, there's always one more buffer overflow. :-(
This one hinted to by the recently posted exploit (although not exploited by
it).
1997-09-16 08:33:52 +00:00
Wolfram Schneider 753da33042 Add a genclass.1 manpage. 1997-09-15 19:18:59 +00:00
Wolfram Schneider 11210c4ed5 Add a simple manpage. 1997-09-15 16:08:56 +00:00
Andrey A. Chernov 40d7476321 Fix neqn building:
1) Move it after Makefile.inc included since it uses DIST_DIR from there
2) Add neqn.sh dependance
1997-09-15 01:56:29 +00:00
Wolfram Schneider c455f09b2d Add a simple manpage. 1997-09-14 23:43:22 +00:00
Wolfram Schneider f6b31571f6 spelling corrections.
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
John Polstra 170fa4e888 Touch up the code that implements "ldd -v".
Bring the style of sods.c into better conformance.  Add code to
print the contents of each datum being relocated.  Correct the logic
that distinguishes between programs, shared libraries, and object
files.  Make the entire program "-Wall" clean.
1997-09-02 21:54:39 +00:00
John-Mark Gurney 46657c7e77 fix a few spelling changes
Submitted by: Josh Gilliam

Closes PR's: 4429, 4431-4438

PS: He has agreed to submit all contrib fixes back to the original author.
1997-08-30 12:22:49 +00:00
John-Mark Gurney 0abdc26a0d fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4426
1997-08-30 11:08:06 +00:00
Søren Schmidt cf302734e1 Dont use an internal function called warn it clashes with libc.
Allows ELF compile.
1997-08-29 16:14:20 +00:00
David E. O'Brien e983bbadc0 Real skeleton manpage for install-info
(someone that actually knows what it really does (I don't use info) really
should try to put some meat in this)
1997-08-29 09:10:22 +00:00
Joerg Wunsch bc151cdc8c Major Ooops. I've overlooked a few calls to scanident() in my last commit.
Submitted by:	rbezuide@oskar.nanoteq.co.za (Reinier Bezuidenhout)
1997-08-27 17:18:30 +00:00
Steve Price bd673ff4e7 .Ar -l -> .Fl l
PR:		docs/3682
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-08-23 21:59:41 +00:00
Steve Price 3511ae5bba Add missing *roff macros to correct display about -V option.
PR:		docs/4162
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp
1997-08-23 15:50:53 +00:00
John-Mark Gurney ffc946a350 bin to BIN{OWN,GRP} and add Id line 1997-08-23 05:26:32 +00:00
Peter Wemm d1eca759eb Fix missed optimisation in "Attic/" stripping code in $CVSHeader$
Submitted by: jdp
1997-08-22 06:59:08 +00:00
Peter Wemm d4ba5766dd Add -R (rescan or refresh) option to rescan and rebuild the hints
file based on the previous list of directories stored there which
should overcome a weakness of the '-m' switch which can only add
libs.  This is an ideal way of updating the hints list after adding
or removing a shlib since it will remove entries that are gone and
doesn't need to have all the directories spelled out each time.
(eg: rm -f /usr/lib/libtcl75*; ldconfig -R)  This only works for
version 2 hints files (which we've been generating for a year or
so) which store the path.
1997-08-22 04:42:12 +00:00
David E. O'Brien 88d1479a58 Added to RELENG_2_2 via tagging. 1997-08-21 08:26:55 +00:00
John-Mark Gurney 0426565f90 change bin to BINOWN and BINGRP
Reviewed-by: joerg
1997-08-21 03:28:07 +00:00
Nate Williams 39f2a9e2db - In dlsym(), if the lookup fails using the original symbol, prepend an
underscore and try looking it up again.  This is a non-issue if we
  switch to ELF.

Reviewed by:	sef, jdp
1997-08-19 23:33:45 +00:00
Peter Wemm 0b5711950f Redo the $CVSHeader$ support to use code from David Dawes as in XFree86.
The stuff I hacked together didn't strip out "/Attic/" for files
on branches when the HEAD version was cvs rm'ed.
1997-08-19 11:17:37 +00:00
Peter Wemm 839dac029a Don't accidently compress "sh" or there are unfortunate consequences.
PR: 4220
Submitted-by: Dag-Erling Coidan Smørgrav <finrod@pugwash.priv.no>
1997-08-09 15:34:40 +00:00
Joerg Wunsch 66457fe332 Fix a buffer overflow condition (that causes a security hole in suidperl).
Closes: CERT Advisory CA-97.17 - Vulnerability in suidperl
Obtained from: (partly) the fix in CA-97.17
1997-08-08 20:53:59 +00:00
John Polstra 7e7344e2f4 Implement dlsym(RTLD_NEXT, symbol). 1997-08-02 04:56:44 +00:00
Bruce Evans d1ef093383 Support 4MB pages. 1997-07-27 18:29:04 +00:00
Jun-ichiro itojun Hagino 87fc08e0db small change to prevent "modules" to be modified twice, on the following
execution sequences:
	% easy-import -n foobaa
	% easy-import foobaa

Reviewed by:	joerg_wunsch@uriah.heep.sax.de
1997-07-15 16:48:01 +00:00
John Dyson 0d3f410b50 Add some Pentium and PentiumPro opcodes and registers. 1997-07-15 07:56:53 +00:00
Bruce Evans 64bb6c3420 Don't define HOST_DATA_START_ADDR, since gdb works without it the
previous definition doesn't work on BSD4.4Lite[2] derived systems
without the changes in rev.1.27 of kern_proc.c.
1997-07-13 14:31:54 +00:00
Jordan K. Hubbard 571b472b20 Allow ldconfig to accept files (containing directory paths) as well as
directory paths.
Reviewed by:	jkh & jdp
Submitted by:	Hans Zuidam <hans@brandinnovators.com>
1997-07-11 14:45:41 +00:00
Wolfram Schneider 09eac7d4b2 Better section guessing for manual pages without suffix. The
plan9 manual pages dont have a suffix.
1997-07-04 22:32:59 +00:00
Bruce Evans 68f69edcb6 Removed -I path to gdb's readline. This didn't do much in -current
because the -I path to config/libreadline had precedence, but in
2.2 it help hide the bug that the -I path to the non-contrib
libreadline was garbage.
1997-06-30 23:10:54 +00:00
Bruce Evans 7569c70b61 gdb.info still needs a near-copy of hsuser.texinfo to avoid the
reference to the programming manual.  Use this near-copy of the version
of hsuser.texinfo in contrib/libreadline instead of the stale near-copy
in contrib/gdb.
1997-06-30 12:57:58 +00:00
Bruce Evans 1dce44f3ea Configure static linkage in the normal way (default to -static using
NOSHARED?= yes).
1997-06-29 21:40:54 +00:00
Bruce Evans 29fc5d6403 Configure static linkage in the normal way (default to -static using
NOSHARED?= yes).

Split long lines.
1997-06-29 21:36:33 +00:00
Paul Traina 72b4ef7179 NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
NOPIC is used to not generate a shared library, not NOSHARED.
Make NOSHARED advisory where appropriate.
Remove bogus NOSHARED (kbdio).
1997-06-29 06:03:42 +00:00
Tor Egge 47c8f7894f Don't depend upon the user structure having been aligned on a 8 KB boundary.
Reviewed by:	Peter Wemm <peter@spinner.dialix.com.au>
1997-06-27 15:48:22 +00:00
Peter Wemm 439ff84095 Zap some unused debugging printfs that I accidently left in. 1997-06-27 13:39:31 +00:00
Steve Price d0dff61cfb Fix a minor nit in the .Dd macro invocation so that
the revision date is displayed correctly.
1997-06-23 04:52:13 +00:00
Poul-Henning Kamp 8de2b8b504 BYOC - Bring Your Own Calloc(3)
Someday I'm going to face the music and dispose of this private malloc copy.
1997-06-22 17:48:35 +00:00
John-Mark Gurney 1475bac7ec support remote imports (you must have a local cvs with same path as
remote for this to work)

Approved/Improved by: joerg
1997-06-09 10:08:07 +00:00
Paul Richards 53b27391b0 Remove "support" class since we don't provide support services to users. 1997-06-07 23:46:48 +00:00
Bruce Evans b7542f0123 Support reading and writing of %fs and %gs (except from core files). 1997-06-07 04:50:43 +00:00
Masafumi Max NAKANE 88e57b4a69 Typo fix in the EXAMPLES section. 1997-06-05 23:12:13 +00:00
John Polstra 503c715b84 Fix some old typos and misspellings. 1997-05-31 04:28:53 +00:00
Doug Rabson 12510ea316 Document new -Bforcedynamic flag and -assert pure-text.
Reviewed by:	jdp
1997-05-29 15:34:34 +00:00
Masafumi Max NAKANE d5fb0dffb4 Typo fix.
PR:		3693
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-05-27 13:46:40 +00:00
Philippe Charnier c1fe3bceca Add -fno-for-scope to CFLAGS, required by gcc (see NEWS).
PR:	gnu/3585
1997-05-23 06:17:21 +00:00
Warner Losh 628c89d341 Fix buffer overload that might lead to root. 1997-05-22 21:40:08 +00:00
Philippe Charnier 6cb01af4ac replace obsolete @ctrl{A} with @kbd{C-A}. Suppress compilation warning. 1997-05-21 06:12:22 +00:00
Eivind Eklund 6ad98044a1 `it's'' -> `its'' where appropriate and typo fixes in time2posix.3.
Closes PR docs/3612.

Submitted by:	Josh Gilliam <soil@quick.net>
1997-05-19 16:33:27 +00:00
Peter Wemm dc07dab926 Update to build the new cvs version 1997-05-15 23:00:07 +00:00
Doug Rabson 3c0a9567e5 Changes to support the kernel linker:
Add a -Bforcedynamic option which generates a dynamic object even
	if no shared libraries were given in the link.

	Make RRS in text section warnings conditional on "-assert pure-text"
	so that I can link non-PIC kernel modules without tons of link
	errors.  Changes to bsd.lib.mk to follow.

	Fix a couple of bugs exposed by the fact that the kernel is not
	linked at zero.

Reviewed by:	jdp
1997-05-13 10:23:47 +00:00
Peter Wemm e6da6cbc7d After looking around at what the other *BSD's do for their $xxxBSD$ tags,
take the easy way out and implement the beginnings of something similar.
Don't worry, the code here is *dormant* so far, some "help" from cvs is
required.  This is going in now so that jdp can see what I'm working on.
This is an extension of the previous existing skeleton $FreeBSD$ code.
1997-05-11 05:33:08 +00:00
Gary Jennejohn 1735e8a3c8 delete kcorelow.c, it didn't produce any code and broke init.c
because 2 references to _initialize_kcorelow (the other one
from kvm-fbsd.c) resulted. This prevented gdb from working correectly.

delete kcorelow.c from XSRCS in the Makefile.
1997-05-02 11:22:51 +00:00
Paul Traina 371bcb2ecd Clean up merge from 2.2 (without spamming peter's changes) 1997-05-01 16:24:37 +00:00
Peter Wemm 5702598255 Patch up init.c generation so that it works in -current.. It was trying
to use files that do not exist here.  Also, fix(?) ${.OBJDIR}/init.c hack.
1997-05-01 13:40:57 +00:00
Peter Wemm 8808286693 Fix include of <sys/dir.h> to <dirent.h> - it hits a #warning 1997-05-01 13:36:35 +00:00
Paul Traina 5a05ca1d76 Fix up a spurious '@' I added at the last second 1997-05-01 00:26:43 +00:00
Paul Traina 54adf80955 Merge from 2.2: auto-gen init.c and add ser-tcp.c 1997-05-01 00:18:51 +00:00
Bruce Evans a511e4a787 Fetch the registers from struct members in the pcb instead of
punning the pcb to an array of ints and using magic indices to
access values in it.  This should prevent silent breakage from
changes in the pcb.

Supply 0 for unavailable registers instead of punning the tss to
an array of ints and using magic indices to access garbage values
in it.  (The registers are in the pcb; there is nothing interesting
in the tss.  This should change someday.  At least for dumps, all
the registers should be saved, and common_tss is a good place to
put them.)

Removed ancient wrong (disabled) method for reading eip.
1997-04-30 15:33:56 +00:00
Bruce Evans ae105a60aa Backed out previous change. It just gave a more verbose Makefile by
repeating the default for MAN1.
1997-04-30 15:23:02 +00:00
John Polstra aafb797228 Fix a bug that caused the relocs for linker set members in shared
libraries to come out as 1-byte relocations instead of 4-byte
relocations.

Submitted by:	Doug Rabson <dfr@nlsystems.com>
1997-04-30 05:18:08 +00:00
John Polstra 3b9d3fa4fa Set the N_EXT (external) flag for all weak symbols. It makes no
sense to have a weak symbol that is not externally visible.  This
fixes many of the "relocation burb" warnings produced when compiling
C++ code with "-fpic".  Beyond eliminating warnings, it also makes
some things work that didn't work before.
1997-04-29 02:11:48 +00:00
Gary Jennejohn 3e3d6b2e21 change kvm-fbsd.c so that kernel debugging works again.
document the -k and -wcore options in the manpage.

change Makefile to use a local copy of the manpage.
1997-04-27 21:36:49 +00:00
Paul Traina e620a3be19 Activate gdbserver and gdbreplay 1997-04-26 17:34:05 +00:00
Paul Traina f3764e7923 Initial import of gdbserver FreeBSD support 1997-04-25 22:25:50 +00:00
Paul Traina 57f37775e5 Initial import of gdbreplay build structure 1997-04-25 22:25:22 +00:00
Bruce Evans a9d61f30f1 Fixed `make depend'. The previous change reduced it to making only
config.h (which isn't used directly).  Added a comment about the
indirect use of config.h.
1997-04-25 20:20:21 +00:00
Bruce Evans d836aa8d19 Don't complain about no input files for `ld -f'. This fixes spurious
(ignored :-() errors for `make depend' in /sys/i386/boot/*.  It's
natural for there to be no libraries there and inconvenient to check
for this in bsd.prog.mk.
1997-04-25 19:43:19 +00:00
John Polstra ec77d02207 Fill the padding at the end of the runtime strings with zeros,
instead of leaving random data there.  This makes the linker's
output files more deterministic -- an important property for
regression tests.
1997-04-25 15:26:12 +00:00
Wolfram Schneider dc15037d84 Understand `--' to end processing of command options.
This means one search for a string starting with a dash.
Fix also filenames starting with a dash. Close PR #3349
1997-04-19 20:06:57 +00:00
Bruce Evans 9453d60b10 Fixed `make depend' and related bogons. LDFLAGS was used for
ld-specific flags.  LDFLAGS is really for ld-related flags for cc,
not for ld, and some flags, e.g., -Bshareable, mean completely
different things to cc and ld.  Having the wrong things in LDFLAGS
also broke the standard ${PROG} target.  This was kludged around
by using a special rule that depended on LDFLAGS being bogus.
Fixing `make depend' broke the special rule but fixed the standard
rule (except in the DESTDIR case, which was handled more strictly
here than elsewhere).
1997-04-16 11:31:32 +00:00
Joerg Wunsch a08b0cc730 Don't create anything on the disk if -O (aka --to-stdout) was given.
PR:		gnu/3247: tar -O creates directories...
1997-04-13 08:39:38 +00:00
Jordan K. Hubbard 5801796846 Close PR#3118 1997-04-13 06:38:56 +00:00
Peter Wemm f2a0af48e5 Don't descend into the perl directory if it isn't there (eg: cvsup
refuse file), or if NOPERL is defined (eg: in /etc/make.conf)
1997-04-12 07:19:09 +00:00
Bruce Evans dba161abd4 Don't print nonexistent library names for `ld -f [-Lfoo] -lbar'. A
dependency on `bar' is very unlikely to be correct.

This is a quick fix for broken dependencies in gdb and many other
places.  The dependencies on internal libraries are now missing
instead of wrong when `make depend' is run before the libraries
are created.
1997-04-11 17:08:56 +00:00
Jordan K. Hubbard 2f1dba3bff Make depend rely on config.h 1997-04-11 05:17:25 +00:00
Bruce Evans 3fdee18f30 Fixed bogus existence test related to searching for a nearby obj
directory.  manpath.1 is always in the current (= object) directory,
so don't search for it.
1997-04-10 16:14:09 +00:00
Bruce Evans a9d9f5acb1 Fixed bogus existence test related to searching for a nearby obj
directory.  man.1 is always in the current (= object) directory,
so don't search for it.
1997-04-10 16:13:17 +00:00
Bruce Evans 7a57462e37 Fixed bogus existence test related to searching for a nearby obj
directory.  config.h is always in the current (= object) directory,
so don't search for it.

config.h is not a source for the library, so don't put it in SRCS and
don't make the library depend on it.

Don't put unused flags in CFLAGS.

Simplify using INTERNALLIB*.
1997-04-10 16:04:43 +00:00
Bruce Evans 6a5c059562 Fixed bugs involving paths:
- LDADD was wrong for non-uniform obj trees.
- DPADD was wrong for separate obj tres.

Cleaned up nearby messes, mostly ones invoving paths:
- ../libtxi was useless.
- there were too many redefinitions and too many different names for the
  same paths.
- use INTERNALLIB* to simplify libtxi/Makefile.
1997-04-07 17:21:19 +00:00
Bruce Evans cc208f94d9 Fixed bugs involving paths:
- LDADD was wrong for non-uniform obj trees.
- DPADD was wrong for separate obj tres.

Cleaned up nearby messes, mostly ones invoving paths:
- -I../libtxi was useless.
- there were too many redefinitions and too many different names for the
  same paths.
- use INTERNALLIB* to simplify libtxi/Makefile.
1997-04-07 16:52:53 +00:00
Peter Wemm 4f71948c41 Attempt to patch up gdb so that it has a chance of working with the new
UPAGES layout.. it was entirely too comfortable with reading and writing
the U area before.  I've changed it to use PT_GETREGS/PT_PUTREGS
ptrace ops instead of READ_U etc.  The code to read the registers from
core dumps is a bandaid at best.  It seems to have problems reading
core dumps from dynamic linked executables still, but at least static
dumps work.

I desperately need help from a gdb/bfd expert. :-)  HELP!!
1997-04-07 08:08:20 +00:00
David E. O'Brien 3162fb1fe3 Bmake Makefile for building info files for GNU cpio. 1997-04-03 11:20:39 +00:00
David E. O'Brien 33ab7aea0d Bmake Makefiles for GNU cpio. 1997-04-03 11:20:09 +00:00
David E. O'Brien 579ff16bdc Make way for FreeBSD files with CPIO bits in src/contrib/cpio 1997-04-03 11:16:57 +00:00
Mike Pritchard 5eefb7a4ee Remove a doubled word. Closes PR# 3163.
Submitted by:	 Kazuo Horikawa <horikawa@jp.freebsd.org>
1997-04-01 18:28:25 +00:00
Peter Wemm 743c3e66c8 Toast dummy lchown(), it's in libc now. 1997-03-31 12:56:00 +00:00
Peter Wemm c65bfffcff generate c-exp.c, f-exp.c and m2-exp.c with yacc rather than using
the generated ones in the gdb dist.
1997-03-29 10:33:13 +00:00
Peter Wemm a46132c1a2 Protect against multiple inclusion (All the CFLAGS+= items make the cc
command lines get rather long).  (bsd.lib.mk is particularly bad at this)
1997-03-29 10:29:40 +00:00
John Polstra 850a26162a Support the ".p2align" directive, which is standard in newer versions
of binutils.  For all architectures and object file formats,
".p2align n" aligns to the next multiple of 2**n.  Thus for FreeBSD,
it does exactly the same thing as the traditional ".align".

The old ".align" directive has different meanings in different
object formats, and even in different variants of a.out.  Sometimes
is aligns to a multiple of n, and other times it aligns to a multiple
of 2**n.  ".p2align" is preferable for use in assembly language
sources, since it makes them more portable to object formats other
than a.out.
1997-03-29 02:16:44 +00:00
John Polstra a6660d6035 Change a "=" to "?=" to make it easier to override the binary format
from the environment.
1997-03-28 04:45:30 +00:00
David E. O'Brien 850efa2b1f FreeBSD modifications and notes for GNU cpio. 1997-03-26 20:01:24 +00:00
John Polstra 32d41c2b07 Add a new "-f" option to the linker, to print the resolved paths
of all the files and libraries in the command line.

Submitted by:	bde (Bruce Evans)
1997-03-22 02:59:40 +00:00
Wolfram Schneider 1d893449f7 Make makewhatis(1) happy. 1997-03-21 20:59:44 +00:00
Andrey A. Chernov 2eaf474aea Fix initstate() cast to match Lite2 1997-03-17 16:32:14 +00:00
John-Mark Gurney 5e30934038 fix compilation warnings in patch... (with slight modification)
also remove -Wall that I acidentally committed last time I was here...

Submitted-by: Philippe Charnier

Closes PR#2998
1997-03-17 01:44:43 +00:00
Guido van Rooij 34eddd5161 Remove unnecessary chmod()'s. This should likely go in other branches.
Obtained from: aleph1@UNDERGROUND.ORG on Bugtraq
1997-03-15 22:43:58 +00:00
Gary Jennejohn 79a5f47589 delete the LINKS line (link gdb to kgdb) by popular demand. 1997-03-15 20:59:59 +00:00
Wolfram Schneider 2e6c23155e Support german mdoc man pages (currently no german mdoc man page exists).
Support japanese FreeBSD man pages, Jpman Project.
1997-03-14 21:58:43 +00:00
Wolfram Schneider a8f61f25f5 Support german Linux/GNU man pages. 1997-03-13 17:56:01 +00:00
Gary Jennejohn ebab7e8272 add LINKS line to Makefile to automatically produce a link to kgdb
define START_PROGRESS in nm.h to check whether gdb was invoked as kgdb
and set the kernel_debugging flag in that case.

2.2 candidate ?
1997-03-12 22:34:09 +00:00
Peter Wemm 16d01e82bc Oops.. Missed this one too. getopt is in unistd.h now, not stdlib.h 1997-03-11 17:57:26 +00:00
Peter Wemm 89cb27a3d4 Fix the getopt() prototype to match the system one. 1997-03-11 17:14:37 +00:00
Peter Wemm 4cd4220565 Build under Lite2 includes 1997-03-11 17:13:31 +00:00