freebsd-dev/sys/ddb
Peter Wemm f41325db5f With this commit, I hereby pronounce gensetdefs past its use-by date.
Replace the a.out emulation of 'struct linker_set' with something
a little more flexible.  <sys/linker_set.h> now provides macros for
accessing elements and completely hides the implementation.

The linker_set.h macros have been on the back burner in various
forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()),
John Polstra (ELF clue) and myself (cleaned up API and the conversion
of the rest of the kernel to use it).

The macros declare a strongly typed set.  They return elements with the
type that you declare the set with, rather than a generic void *.

For ELF, we use the magic ld symbols (__start_<setname> and
__stop_<setname>).  Thanks to Richard Henderson <rth@redhat.com> for the
trick about how to force ld to provide them for kld's.

For a.out, we use the old linker_set struct.

NOTE: the item lists are no longer null terminated.  This is why
the code impact is high in certain areas.

The runtime linker has a new method to find the linker set
boundaries depending on which backend format is in use.

linker sets are still module/kld unfriendly and should never be used
for anything that may be modular one day.

Reviewed by:	eivind
2001-06-13 10:58:39 +00:00
..
db_access.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_access.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_aout.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_break.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_break.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_command.c With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
db_command.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_examine.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_expr.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_input.c Add a new mechanism, cndbctl(), to tell the console driver that 2000-01-11 14:54:01 +00:00
db_kld.c Fix a typo in the db_kld.c file - it's kld support not raw a.out support. 2000-01-11 13:25:12 +00:00
db_lex.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_lex.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_output.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_output.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_print.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_ps.c o Merge contents of struct pcred into struct ucred. Specifically, add the 2001-05-25 16:59:11 +00:00
db_run.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_sym.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_sym.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_sysctl.c Previous commit changing SYSCTL_HANDLER_ARGS violated KNF. 2000-07-04 11:25:35 +00:00
db_trap.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_variables.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_variables.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_watch.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
db_watch.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
db_write_cmd.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ddb.h Add a new mechanism, cndbctl(), to tell the console driver that 2000-01-11 14:54:01 +00:00