summaryrefslogtreecommitdiff
path: root/lib/libthread_db/libthr_db.c
Commit message (Collapse)AuthorAgeFilesLines
* Change lwp to int64_t as thr_pread_long() always uses a 64-bit valueMarius Strobl2011-08-071-4/+4
| | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=224693
* The tid member of struct pthread actually is long so read it as such.Marius Strobl2011-08-061-8/+8
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=224683
* Extend the td_thrinfo_t to include siginfo for the signal that stoppedKonstantin Belousov2010-07-041-1/+23
| | | | | | | | | | the target. Take care of ABI. Suggested by: davidxu MFC after: 2 weeks Notes: svn path=/head/; revision=209689
* Revert r181651, which changed the ABI, and use a temp variable instead.Dag-Erling Smørgrav2009-06-091-1/+3
| | | | | | | Suggested by: attilio Notes: svn path=/head/; revision=193826
* Allow psaddr_t to be widened by using thr_pread_{int,long,ptr},Marcel Moolenaar2008-09-141-52/+38
| | | | | | | | | | 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. Notes: svn path=/head/; revision=183021
* Cleanup for WARNS 6.Marcel Moolenaar2008-08-061-13/+11
| | | | Notes: svn path=/head/; revision=181341
* Change the type of psaddr_t from void* to uintptr_t. A pointerMarcel Moolenaar2008-07-301-13/+12
| | | | | | | | type cannot be made wider to allow ILP32 platforms to target LP64 platforms. Notes: svn path=/head/; revision=180982
* Use linker set to collection all target operations.David Xu2008-03-221-0/+3
| | | | Notes: svn path=/head/; revision=177490
* Fix return value.David Xu2006-05-171-1/+2
| | | | Notes: svn path=/head/; revision=158681
* Use ps_linfo to retrieve LWP info, current it is used to retrieveDavid Xu2006-02-071-0/+6
| | | | | | | signal mask and pending signals. Notes: svn path=/head/; revision=155414
* Always clear thread info buffer to zero.David Xu2006-02-061-0/+1
| | | | Notes: svn path=/head/; revision=155387
* Add support for XMM registers in GDB for x86 processors that supportDoug Rabson2005-05-311-0/+40
| | | | | | | | | | SSE (or its successors). Reviewed by: marcel, davidxu MFC After: 2 weeks Notes: svn path=/head/; revision=146818
* Remove unused variables.Philippe Charnier2005-05-201-2/+1
| | | | Notes: svn path=/head/; revision=146447
* o Code cleanup, eliminate private thread id map, directlyDavid Xu2005-04-131-187/+64
| | | | | | | | use lwpid as thread id. o Export tls pointer. Notes: svn path=/head/; revision=144989
* Fill traceme and events fields.David Xu2005-04-121-0/+8
| | | | Notes: svn path=/head/; revision=144974
* Sync with debugger code in libthr.David Xu2005-04-121-35/+161
| | | | Notes: svn path=/head/; revision=144922
* Export thread address.David Xu2005-04-051-0/+5
| | | | Notes: svn path=/head/; revision=144663
* Update debugger code for new libthr.David Xu2005-04-021-216/+578
| | | | Notes: svn path=/head/; revision=144519
* 1. Add missing functions: libthr_dbresume,libthr_dbsuspend.David Xu2004-08-131-20/+77
| | | | | | | | | 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. Notes: svn path=/head/; revision=133631
* Add rudimentary support and stubs for libthr and libc_r on alpha, amd64,Marcel Moolenaar2004-07-181-0/+311
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 Notes: svn path=/head/; revision=132332