History log of /freebsd-current/lib/libthread_db/libthr_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.


# 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.


# ef6f47c4 07-Aug-2011 Marius Strobl <marius@FreeBSD.org>

Change lwp to int64_t as thr_pread_long() always uses a 64-bit value
in order to account for LP64 targets when cross-debugging on ILP32,
allowing r224683 to compile on ILP32.
Note that thr_p{read,write}_{long,ptr}() still incorrectly use the size
of the respective types on the host rather than that on the target when
accessing the target address space which still needs to be fixed. This
means that r224683 alone may not be sufficient to solve the problem it's
intended to fix when cross-debugging.

Approved by: re (hrs)


# e31fe879 06-Aug-2011 Marius Strobl <marius@FreeBSD.org>

The tid member of struct pthread actually is long so read it as such.
Accessing it as an int causes failure on big-endian LP64, i.e. mips64be,
powerpc64 and sparc64.

Reviewed by: marcel
Approved by: re (kib)
MFC after: 1 week


# 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.


# 18860a1c 08-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Revert r181651, which changed the ABI, and use a temp variable instead.

Suggested by: attilio


# 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.


# 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.


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

Use linker set to collection all target operations.


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

Fix return value.


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

Use ps_linfo to retrieve LWP info, current it is used to retrieve
signal mask and pending signals.


# 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.


# 787e88a3 12-Apr-2005 David Xu <davidxu@FreeBSD.org>

o Code cleanup, eliminate private thread id map, directly
use lwpid as thread id.
o Export tls pointer.


# b9da3fd7 12-Apr-2005 David Xu <davidxu@FreeBSD.org>

Fill traceme and events fields.


# 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.


# e65421ba 01-Apr-2005 David Xu <davidxu@FreeBSD.org>

Update debugger code for new libthr.


# d4ee7126 13-Aug-2004 David Xu <davidxu@FreeBSD.org>

1. Add missing functions: libthr_dbresume,libthr_dbsuspend.
2. Implement functions: libthr_db_thr_setfpregs, libthr_db_thr_setregs,
libthr_db_ta_map_id2thr.
3. simplify libthr_db_thr_getfpregs, libthr_db_thr_getgregs.


# 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