Skip site navigation (1)Skip section navigation (2)

CVS log for src/usr.bin/gcore/elfcore.c

[BACK] Up to [FreeBSD] / src / usr.bin / gcore

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.25.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.25.2.1: preferred, colored
Changes since revision 1.25.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.20.2.6: download - view: text, markup, annotated - select for diffs
Wed Aug 10 08:53:33 2011 UTC (6 months ago) by delphij
Branches: RELENG_8
Diff to: previous 1.20.2.5: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.5: +1 -1 lines
SVN rev 224754 on 2011-08-10 08:53:33Z by delphij

MFC r223924:

Match size_t and ssize_t by using %zu and %zd instead of %d.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jul 11 05:46:15 2011 UTC (7 months ago) by delphij
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -1 lines
SVN rev 223924 on 2011-07-11 05:46:15Z by delphij

Match size_t and ssize_t by using %zu and %zd instead of %d.

MFC after:	1 month

Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Tue Dec 28 19:26:57 2010 UTC (13 months, 1 week ago) by jhb
Branches: RELENG_7
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +169 -181 lines
SVN rev 216771 on 2010-12-28 19:26:57Z by jhb

MFC 199805,203532,204329,210063,210065:
- Change gcore in order to get rid of the procfs accesses and use FreeBSD's
  specific sysctls and ptrace interfaces.
  This change switches a bit gcore POLA that is summarized here:
  - now gcore can recognize threads within the process and handle dumps
    on thread-scope
  - the process to be analyzed will be stopped during its gcore run
  - gcore may not work with processes which are actively being analyzed
    by gdb or truss
  - the ptrace interface may cause syscalls to return EINTR, thus
    interferring with signals handling within the process
- Fix gcore so that it can have the '-s' flag without hanging.
- Fix the way the segments are included in the gcore outputs (with the
  default invokation):
  - Right now if segments are not writable are not included. Remove this.
  - Right now if a segment is mapped with NOCORE the check is not honoured.
    Change this by checking the newly added flag, from libutil,
    KVME_FLAG_NOCOREDUMP.

  Besides that, add a new flag (-f) that forces a 'full' dump of all the
  segments excluding just the malformed ones. This might be used very
  carefully as, among the reported segments, there could be memory
  mapped areas that could be vital to program execution.

Revision 1.20.2.5: download - view: text, markup, annotated - select for diffs
Mon Dec 27 12:39:24 2010 UTC (13 months, 2 weeks ago) by attilio
Branches: RELENG_8
Diff to: previous 1.20.2.4: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.4: +11 -0 lines
SVN rev 216734 on 2010-12-27 12:39:24Z by attilio

MFC r215679:
Add the ability for GDB to printout the thread name along with other thread
specific informations.
In order to achieve that, for both on-line debugging and core analysis,
a new member to PT_LWPINFO ptrace(2) interface is added and a new
ELF note (NT_THRMISC) as well.

Sponsored by:	Sandvine Incorporated

Revision 1.19.2.2.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.19.2.2: preferred, colored; next MAIN 1.19.2.3: preferred, colored
Changes since revision 1.19.2.2: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.20.2.4.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.20.2.4: preferred, colored; next MAIN 1.20.2.5: preferred, colored
Changes since revision 1.20.2.4: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Nov 22 14:42:13 2010 UTC (14 months, 2 weeks ago) by attilio
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +11 -0 lines
SVN rev 215679 on 2010-11-22 14:42:13Z by attilio

Add the ability for GDB to printout the thread name along with other
thread specific informations.

In order to do that, and in order to avoid KBI breakage with existing
infrastructure the following semantic is implemented:
- For live programs, a new member to the PT_LWPINFO is added (pl_tdname)
- For cores, a new ELF note is added (NT_THRMISC) that can be used for
  storing thread specific, miscellaneous, informations. Right now it is
  just popluated with a thread name.

GDB, then, retrieves the correct informations from the corefile via the
BFD interface, as it groks the ELF notes and create appropriate
pseudo-sections.

Sponsored by:	Sandvine Incorporated
Tested by:	gianni
Discussed with:	dim, kan, kib
MFC after:	2 weeks

Revision 1.20.2.4: download - view: text, markup, annotated - select for diffs
Wed Jul 28 16:10:21 2010 UTC (18 months, 1 week ago) by attilio
Branches: RELENG_8
CVS tags: RELENG_8_2_BP
Branch point for: RELENG_8_2
Diff to: previous 1.20.2.3: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.3: +10 -5 lines
SVN rev 210567 on 2010-07-28 16:10:21Z by attilio

MFC r210063, r210065:
Fix the way the segments are included in the gcore outputs (with the
default invokation):
- Right now if segments are not writable are not included. Remove this.
- Right now if a segment is mapped with NOCORE the check is not honoured.
   Change this by checking the newly added flag, from libutil,
   KVME_FLAG_NOCOREDUMP.

Besides that, add a new flag (-f) that forces a 'full' dump of all the
segments excluding just the malformed ones.

Sponsored by:	Sandvine Incorporated

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jul 14 17:16:25 2010 UTC (18 months, 3 weeks ago) by attilio
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +10 -5 lines
SVN rev 210063 on 2010-07-14 17:16:25Z by attilio

Fix the way the segments are included in the gcore outputs (with the
default invokation):
- Right now if segments are not writable are not included. Remove this.
- Right now if a segment is mapped with NOCORE the check is not honoured.
  Change this by checking the newly added flag, from libutil,
  KVME_FLAG_NOCOREDUMP.

Besides that, add a new flag (-f) that forces a 'full' dump of all the
segments excluding just the malformed ones. This might be used very
carefully as, among the reported segments, there could be memory
mapped areas that could be vital to program execution.

Sponsored by:	Sandvine Incorporated
Discussed with:	kib
Reviewed by:	emaste
Tested by:	Sandvine Incorporated
MFC after:	2 weeks

Revision 1.20.2.3.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.20.2.3: preferred, colored; next MAIN 1.20.2.4: preferred, colored
Changes since revision 1.20.2.3: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.19.2.2.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.19.2.2: preferred, colored; next MAIN 1.19.2.3: preferred, colored
Changes since revision 1.19.2.2: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.20.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 19 19:30:27 2009 UTC (2 years, 1 month ago) by attilio
Branches: RELENG_8
CVS tags: RELENG_8_1_BP
Branch point for: RELENG_8_1
Diff to: previous 1.20.2.2: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.2: +164 -181 lines
SVN rev 200737 on 2009-12-19 19:30:27Z by attilio

MFC r199805:
Change gcore in order to get rid of the procfs support and use FreeBSD's
specific interfaces. Main changes:
- now gcore recognizes threads within the the process and handle dumps on
  a thread scope
- the process to be analyzed should be stopped while gcore runs
- gcore may not work with processes that are being debugged with gdb or
  truss
- ptrace may let interruptible calls to return EINTR, thus dirtying
  signals handling within the process

Sponsored by:	Sandvine Incorporated

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Nov 25 15:23:14 2009 UTC (2 years, 2 months ago) by attilio
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +164 -181 lines
SVN rev 199805 on 2009-11-25 15:23:14Z by attilio

Change gcore in order to get rid of the procfs accesses and use FreeBSD's
specific sysctls and ptrace interfaces.
This change switches a bit gcore POLA that is summarized here:
- now gcore can recognize threads within the process and handle dumps
  on thread-scope
- the process to be analyzed will be stopped during its gcore run
- gcore may not work with processes which are actively being analyzed
  by gdb or truss
- the ptrace interface may cause syscalls to return EINTR, thus
  interferring with signals handling within the process

Side note: <janitor task> the interface can be further lifted in order to
get rid of the very last procfs interfaces remnants and made more
suitable for copying with sysctl/ptrace interface </janitor task>.

Obtained from:	Sandvine Incorporated
Reviewed by:	emaste, rwatson
Sponsored by:	Sandvine Incorporated
MFC:		1 month

Revision 1.17.8.3: download - view: text, markup, annotated - select for diffs
Thu Nov 5 02:31:10 2009 UTC (2 years, 3 months ago) by emaste
Branches: RELENG_6
Diff to: previous 1.17.8.2: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.8.2: +3 -3 lines
SVN rev 198937 on 2009-11-05 02:31:10Z by emaste

MFC r197437:

  Use %zu for size_t, not %zd.

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Thu Nov 5 02:29:45 2009 UTC (2 years, 3 months ago) by emaste
Branches: RELENG_7
CVS tags: RELENG_7_4_BP, RELENG_7_3_BP
Branch point for: RELENG_7_4, RELENG_7_3
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +3 -3 lines
SVN rev 198936 on 2009-11-05 02:29:45Z by emaste

MFC r197437:

  Use %zu for size_t, not %zd.

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Thu Nov 5 02:27:56 2009 UTC (2 years, 3 months ago) by emaste
Branches: RELENG_8
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.1: +3 -3 lines
SVN rev 198935 on 2009-11-05 02:27:56Z by emaste

MFC r197437:

  Use %zu for size_t, not %zd.

Revision 1.20.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.20.2.1: preferred, colored; next MAIN 1.20.2.2: preferred, colored
Changes since revision 1.20.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Sep 23 15:32:59 2009 UTC (2 years, 4 months ago) by emaste
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
SVN rev 197437 on 2009-09-23 15:32:59Z by emaste

Use %zu for size_t, not %zd.

Submitted by:	ru
MFC after:	1 week

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 23 00:31:08 2009 UTC (2 years, 4 months ago) by emaste
Branches: RELENG_7
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
SVN rev 197423 on 2009-09-23 00:31:08Z by emaste

MFC r180603:

  Use %zd for size_t.  With this gcore(1) is WARNS=6 clean.

Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_0_BP
Branch point for: RELENG_8_0
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.17.8.2: download - view: text, markup, annotated - select for diffs
Thu Jun 18 15:27:27 2009 UTC (2 years, 7 months ago) by emaste
Branches: RELENG_6
Diff to: previous 1.17.8.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.8.1: +3 -4 lines
SVN rev 194444 on 2009-06-18 15:27:27Z by emaste

MFC r168595 and r180603:

  Eliminate memory leak from an accidental malloc().  Use %zd for size_t.

Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.19.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.17.8.1.4.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.17.8.1: preferred, colored; next MAIN 1.17.8.2: preferred, colored
Changes since revision 1.17.8.1: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jul 18 23:37:05 2008 UTC (3 years, 6 months ago) by delphij
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
SVN rev 180603 on 2008-07-18 23:37:05Z by delphij

Use %zd for size_t.  With this gcore(1) is WARNS=6 clean.

Revision 1.17.8.1: download - view: text, markup, annotated - select for diffs
Wed Jun 6 22:06:42 2007 UTC (4 years, 8 months ago) by jhb
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3
Branch point for: RELENG_6_4
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
MFC: Make gcore(1) 64 bit safe.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Apr 10 17:37:53 2007 UTC (4 years, 10 months ago) by emaste
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Branch point for: RELENG_7_2, RELENG_7_1, RELENG_7
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +0 -1 lines
Eliminate memory leak from an accidental malloc().

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Mar 25 01:14:20 2006 UTC (5 years, 10 months ago) by peter
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Make gcore(1) 64 bit safe.  It was trying to parse the /proc/*/map file
using sscanf and truncating the start/end entries by writing them with a
32 bit int descriptor (%x).  The upper bytes of the 64 bit vm_offset_t
variables (for little endian machines) were uninitialized.  For big endian
machines, things would have been worse because it was storing the 32 bit
value in the upper half of the 64 bit variable.  I've changed it to use
%lx and long types.  That should work on all our platforms.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Jul 12 20:19:40 2004 UTC (7 years, 7 months ago) by rwatson
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5
Branch point for: RELENG_6
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Teach gcore about the pathname field of '/proc/*/map' so that it doesn't
spin when its parser gets confused by a lack of end-of-line.

Submitted by:	Dan Nelson <dan@dan.emsphone.com>
PR:		68839

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Feb 15 22:48:25 2004 UTC (7 years, 11 months ago) by dwmalone
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -4 lines
Fix some WARNS:
1) Remove some unused variables.
2) Mark some things aas static or __unused.
3) Cast to make sure we're comparing the same types.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Sep 13 18:24:59 2002 UTC (9 years, 4 months ago) by peter
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -0 lines
Add #include <sys/queue.h> for sparc64's benefit.  The MD includes there
have less polution.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Sep 13 16:33:35 2002 UTC (9 years, 4 months ago) by peter
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +21 -1 lines
Use a crowbar to move the a.out code out of gcore.c and into its own
file so that we have a chance of using gcore on non-i386 platforms.  Use
linker sets to reduce the registration glue.  Remove md-sparc.c, we do not
have an a.out sparc32 port.  aoutcore.c was repocopied from gcore.c.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Sep 5 09:11:19 2002 UTC (9 years, 5 months ago) by dwmalone
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +0 -0 lines
The changes mentioned below were accidently committed as part of
my previous commit, so the commit message is incorrect for them.
The actual changes were:

elfcore.c 1.11:
Use a uintmax_t 'cos we con't know if php->p_filesz will be a
Elf32_Size or an Elf64_Size and we don't know how these relate to
size_t. Change some ints to size_t and ssize_ts.

gcore.c 1.28:
Include <arpa/inet.h> for ntohl, which is used in N_BADMAG.
Use a uid_t for a uid.

md-nop.c 1.6:
Mark some parameters as unused.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Sep 5 07:43:34 2002 UTC (9 years, 5 months ago) by iedowse
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -0 lines
Include stdint.h to make this compile.

Submitted by:	Garance A Drosihn <drosih@rpi.edu>

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Sep 4 23:29:00 2002 UTC (9 years, 5 months ago) by dwmalone
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +10 -9 lines
ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by:	md5

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Mar 26 12:26:59 2002 UTC (9 years, 10 months ago) by charnier
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -5 lines
Add FBSDID. Do not \n terminate err() strings. Spelling.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Oct 13 04:54:03 2001 UTC (10 years, 4 months ago) by bde
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -2 lines
Removed unused include of kernel-only file <sys/lock.h>.

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:59:11 2001 UTC (10 years, 7 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.2: +2 -2 lines
MFC: * Most of existing include/elf.h is in elf-hints.h.
       elf.h is now a compatibility header with Solaris/SVR4.
	 * Consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11 and too much clashing over
our base elf headers and the Binutils elf headers.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 13 14:41:52 2001 UTC (10 years, 8 months ago) by jlemon
Branches: RELENG_4
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +3 -2 lines
MFC: r1.8; Null terminate buffer.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jun 7 05:26:26 2001 UTC (10 years, 8 months ago) by jlemon
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2, KSE_MILESTONE_2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2 lines
Null terminate buffer.

PR: 23150
Submitted by: Dan Nelson <dnelson@emsphone.com>
MFC in: 1 week

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed May 2 23:56:19 2001 UTC (10 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
* include/elf.h has been repo copied to include/elf-hints.h, and it no
  longer includes machine/elf.h.
* consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11.0 and too much clashing over
our base elf headers and the Binutils elf headers.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 6 21:46:59 2000 UTC (11 years, 7 months ago) by obrien
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
MFC: rev 1.6
Change our ELF binary branding to match the SCO (as USL) method in the latest
SVR4 ELF spec.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Apr 18 02:39:25 2000 UTC (11 years, 9 months ago) by obrien
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Change our ELF binary branding to something more acceptable to the Binutils
maintainers.

After we established our branding method of writing upto 8 characters of
the OS name into the ELF header in the padding; the Binutils maintainers
and/or SCO (as USL) decided that instead the ELF header should grow two new
fields -- EI_OSABI and EI_ABIVERSION.  Each of these are an 8-bit unsigned
integer.  SCO has assigned official values for the EI_OSABI field.  In
addition to this, the Binutils maintainers and NetBSD decided that a better
ELF branding method was to include ABI information in a ".note" ELF
section.

With this set of changes, we will now create ELF binaries branded using
both "official" methods.  Due to the complexity of adding a section to a
binary, binaries branded with ``brandelf'' will only brand using the
EI_OSABI method.  Also due to the complexity of pulling a section out of an
ELF file vs. poking around in the ELF header, our image activator only
looks at the EI_OSABI header field.

Note that a new kernel can still properly load old binaries except for
Linux static binaries branded in our old method.

  *
  * For a short period of time, ``ld'' will also brand ELF binaries
  * using our old method.  This is so people can still use kernel.old
  * with a new world.  This support will be removed before 5.0-RELEASE,
  * and may not last anywhere upto the actual release.  My expiration
  * time for this is about 6mo.
  *

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Oct 29 18:08:05 1999 UTC (12 years, 3 months ago) by phk
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -2 lines
useracc() the prequel:

Merge the contents (less some trivial bordering the silly comments)
of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>.  This puts
the #defines for the vm_inherit_t and vm_prot_t types next to their
typedefs.

This paves the road for the commit to follow shortly: change
useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE}
as argument.

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 15:28:17 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Aug 28 01:01:37 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jul 17 18:58:32 1999 UTC (12 years, 6 months ago) by jdp
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
Make gcore work again.  It was broken by a format change in the
procfs map file when object IDs were eliminated in the mega-commit
that included procfs_map.c revision 1.19.

The map file is a terrible hodge-podge.  The fields that are used
mainly for kernel debugging should be moved out of it into a
separate file, so that the interface presented by the map file to
applications can remain stable in the face of VM system changes.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Nov 1 06:35:36 1998 UTC (13 years, 3 months ago) by jdp
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -2 lines
Fix errors detected by -Wformat.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Oct 19 19:42:18 1998 UTC (13 years, 3 months ago) by jdp
Branches: MAIN
Make gcore work for ELF.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options