History log of /freebsd-current/lib/libthread_db/libpthread_db.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 5e53a4f9 25-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

lib: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.


# 8413ef57 20-Apr-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

libthread_db: unbreak build due to sign/unsigned comparison.

Reported by: lwshu


# 3876a562 20-Apr-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

libpthread_db: undo the memset size change.

I inadvertedly soubled the size of the memset without noticing the
start address had changed. The size for the memset in pt_map_thread()
shouldn't actually match the reallocarray() so undo that part of r317200.

This is a re-commit of r317201 to clarify the log.

X-MFC with: r317200


# 171fcb30 20-Apr-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

Revert r317201 to fix the log.


# febd54eb 20-Apr-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

libpthread_db: leave the memset size from unchanged.

The size for the memset in pt_map_thread() shouldn't actually match the
reallocarray() so undo that part of r317200.

X-MFC with: r317200


# 1f2b051d 20-Apr-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

libthread_db: unsign map_len and use reallocarray(3).

Lengths are not negative, so map_len should be unsigned. Unsign the
corresponding indexes too and bring a small use of reallocarray(3).

Reorder the memset to be consistent with the realloc: it appears we
were only clearing half the memory in pt_map_thread().

MFC after: 2 weeks


# ae824d80 18-Oct-2012 Ed Schouten <ed@FreeBSD.org>

Fix warnings found by -Wmising-variable-declarations.

This self-written compiler warning, which is hopefully going to be
committed into LLVM sources soon, warns about potentially missing
`static' keywords, similar to -Wmissing-prototypes.

- bin/pax: Move external declaration of chdname and s_mask into extern.h.
- bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h.
- sbin/mount_fusefs: Remove char *progname; use getprogname().
- others: add `static' where possible.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 098d0537 03-Jul-2010 Konstantin Belousov <kib@FreeBSD.org>

Extend the td_thrinfo_t to include siginfo for the signal that stopped
the target. Take care of ABI.

Suggested by: davidxu
MFC after: 2 weeks


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 03fad2ad 14-Sep-2008 Marcel Moolenaar <marcel@FreeBSD.org>

Allow psaddr_t to be widened by using thr_pread_{int,long,ptr},
where critical. Some places still use ps_pread/ps_pwrite directly,
but only need changed when byte-order comes into the picture.
Also, change th_p in td_event_msg_t from a pointer type to
psaddr_t, so that events also work when psaddr_t is widened.


# f60a5b31 05-Aug-2008 Marcel Moolenaar <marcel@FreeBSD.org>

Cleanup for WARNS 6.


# 820c1c55 31-Jul-2008 Marcel Moolenaar <marcel@FreeBSD.org>

Cleanup for WARNS 3.


# 16b0c20c 29-Jul-2008 Marcel Moolenaar <marcel@FreeBSD.org>

Change the type of psaddr_t from void* to uintptr_t. A pointer
type cannot be made wider to allow ILP32 platforms to target
LP64 platforms.


# fbb275f5 23-Mar-2008 Jeff Roberson <jeff@FreeBSD.org>

- Restore kse.h in this directory so other tools don't find it by mistake.
- Restore the ability to debug kse coredumps in 8.0.

Suggested by: marcel


# 20b94d80 21-Mar-2008 David Xu <davidxu@FreeBSD.org>

Use linker set to collection all target operations.


# 2ed66c93 16-May-2006 David Xu <davidxu@FreeBSD.org>

get thread signal info.


# 6ff81bf5 06-Feb-2006 David Xu <davidxu@FreeBSD.org>

Use ps_linfo to retrieve LWP info.


# 4db106a9 06-Feb-2006 David Xu <davidxu@FreeBSD.org>

Replace ptrace syscall with ps_lgetgregs to check a LWP's existence.


# 83154c48 06-Feb-2006 David Xu <davidxu@FreeBSD.org>

Always clear thread info buffer to zero.


# 8d7681bb 31-May-2005 Doug Rabson <dfr@FreeBSD.org>

Add support for XMM registers in GDB for x86 processors that support
SSE (or its successors).

Reviewed by: marcel, davidxu
MFC After: 2 weeks


# d36dd0b7 20-May-2005 Philippe Charnier <charnier@FreeBSD.org>

Remove unused variables.


# a80845ea 11-Apr-2005 David Xu <davidxu@FreeBSD.org>

Sync with debugger code in libthr.


# 2ec2da86 05-Apr-2005 David Xu <davidxu@FreeBSD.org>

Export thread address.


# 2eb43a64 15-Aug-2004 David Xu <davidxu@FreeBSD.org>

Plug a memory leak in error case.


# cd980d46 15-Aug-2004 David Xu <davidxu@FreeBSD.org>

1. Use libpthread's exported symbols to calcuate offset in data structure
2. Enable TLS debugger support.


# 3e93cc3a 08-Aug-2004 David Xu <davidxu@FreeBSD.org>

1.Use new way to check if a thread is in critical region, defer suspending
if it is true.
2.Add thread_db api td_thr_tls_get_addr to get tls address, the real code
is commented out util tls patch is committed.

Reviewed by: deischen


# 4513fb36 02-Aug-2004 David Xu <davidxu@FreeBSD.org>

s/TMDF_DONOTRUNUSER/TMDF_SUSPEND/g

Dicussed with: deischen


# 447d36ec 31-Jul-2004 David Xu <davidxu@FreeBSD.org>

Add missing thread suspension/resumption code, fix a bug in pt_thr_sstep,
don't overwrite other debug flags.


# 3c1e38ea 17-Jul-2004 Marcel Moolenaar <marcel@FreeBSD.org>

Add rudimentary support and stubs for libthr and libc_r on alpha, amd64,
i386, ia64 and sparc64. Add stubs for alpha, amd64, ia64 and sparc64 for
libpthread.

Restructure the source files to avoid unnecessary use of subdirectories
that also force us to use non-portable compilation flags to deal with
the uncommon compilation requirements (building archive libraries for
linkage into a shared library).

The libpthread support has been copied from the original local and
cleaned-up to make them WARNS=2 clean.
that also force us to use non-portable compilation flags to deal with
the uncommon compilation requirements (building archive libraries for
linkage into a shared library).

The libpthread support has been copied from the original local and
cleaned-up to make them WARNS=2 clean.

Tested on: amd64, i386, ia64