History log of /freebsd-10-stable/lib/libthread_db/libthr_db.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 241720 19-Oct-2012 ed

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.


# 224693 07-Aug-2011 marius

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)


# 224683 06-Aug-2011 marius

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


# 209689 04-Jul-2010 kib

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


# 193826 09-Jun-2009 des

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

Suggested by: attilio


# 183021 14-Sep-2008 marcel

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.


# 181341 06-Aug-2008 marcel

Cleanup for WARNS 6.


# 180982 29-Jul-2008 marcel

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.


# 177490 22-Mar-2008 davidxu

Use linker set to collection all target operations.


# 158681 17-May-2006 davidxu

Fix return value.


# 155414 07-Feb-2006 davidxu

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


# 155387 06-Feb-2006 davidxu

Always clear thread info buffer to zero.


# 146818 31-May-2005 dfr

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

Reviewed by: marcel, davidxu
MFC After: 2 weeks


# 146447 20-May-2005 charnier

Remove unused variables.


# 144989 13-Apr-2005 davidxu

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


# 144974 12-Apr-2005 davidxu

Fill traceme and events fields.


# 144922 12-Apr-2005 davidxu

Sync with debugger code in libthr.


# 144663 05-Apr-2005 davidxu

Export thread address.


# 144519 01-Apr-2005 davidxu

Update debugger code for new libthr.


# 133631 13-Aug-2004 davidxu

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.


# 132332 18-Jul-2004 marcel

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