summaryrefslogtreecommitdiff
path: root/lib/libthread_db/arch
Commit message (Collapse)AuthorAgeFilesLines
* Remove libthr, csu, libthread_db and testfloat sparc64 specific directories.Warner Losh2020-02-271-92/+0
| | | | | | | Submitted by: kib@ (libthr) Notes: svn path=/head/; revision=358364
* mips: hide regnum definitions behind _KERNEL/_WANT_MIPS_REGNUMKyle Evans2019-08-221-0/+1
| | | | | | | | | | | | | | | | | | | machine/regnum.h ends up being included by sys/procfs.h and sys/ptrace.h via machine/reg.h. Many of the regnum definitions are too short and too generic to be exposing to any userland application including one of these two headers. Moreover, these actively cause build failures in googletest (template <typename T1 ...> expanding to template <typename 9 ...>). Hide the definitions behind _KERNEL or _WANT_MIPS_REGNUM, and patch all of the userland consumers to define as needed. Discussed with: imp, jhb Reviewed by: imp, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21330 Notes: svn path=/head/; revision=351409
* Implement pt_fpreg_to_ucontext(), pt_ucontext_to_fpreg().Ruslan Bukin2018-08-021-2/+8
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=337129
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-265-5/+15
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326219
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. 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. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Preserve VFP state across signal delivery.Michal Meloun2017-03-261-1/+3
| | | | | | | | | | | | | | | | | We don't have enouch space to store full VFP context within mcontext stucture. Due to this: - follow i386/amd64 way and store VFP state outside of the mcontext_t but point to it. Use the size of VFP state structure as an 'magic' indicator of the saved VFP state presence. - teach set_mcontext() about this external storage. - for signal delivery, store VFP state to expanded 'struct sigframe'. Submited by: Andrew Gierth (initial version) PR: 217611 MFC after: 2 weeks Notes: svn path=/head/; revision=315974
* Cleanup structures related to VFP and/or mcontext_t.Michal Meloun2017-03-241-1/+1
| | | | | | | | | | | | | - in mcontext_t, rename newer used 'union __vfp' to equaly sized 'mc_spare'. Space allocated by 'union __vfp' is too small and cannot hold full VFP context. - move structures defined in fp.h to more appropriate headers. - remove all unused VFP structures. MFC after: 2 weeks Notes: svn path=/head/; revision=315900
* Add the RISC-V MD parts of libthread_db.Ruslan Bukin2016-01-271-0/+104
| | | | | | | | | Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5064 Notes: svn path=/head/; revision=294908
* Add the arm64 parts of libthread_db.Andrew Turner2015-04-011-0/+96
| | | | | | | | | Differential Revision: https://reviews.freebsd.org/D2184 Reviewed by: imp Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=280952
* Constify a struct savexmm pointer in pt_ucontext_to_fpreg(), to silenceDimitry Andric2015-01-271-1/+1
| | | | | | | a -Wcast-qual warning from clang 3.6.0. Notes: svn path=/head/; revision=277801
* Remove ia64.Marcel Moolenaar2014-07-071-65/+0
| | | | | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan Notes: svn path=/head/; revision=268351
* Ensure we set all fpu registers to zero by using the address and size ofAndrew Turner2013-08-171-1/+1
| | | | | | | the union over one of its members. Notes: svn path=/head/; revision=254450
* Prefix the alias macros for members of struct __mcontext with an underscoreMarius Strobl2013-07-121-6/+6
| | | | | | | in order to avoid a clash in the net80211 code. Notes: svn path=/head/; revision=253266
* ImplementMarius Strobl2011-08-061-5/+30
| | | | | | | | | Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224685
* Use the size of struct fpreg rather than of the pointer to it when copyingMarius Strobl2011-08-061-2/+5
| | | | | | | | | | | the FPU state. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224684
* Repair some build breakage introduced in r211725 and garbage collect someNathan Whitehorn2010-08-281-83/+0
| | | | | | | code made obsolete in the same commit. Notes: svn path=/head/; revision=211934
* Powerpc64 thread libraries support.Nathan Whitehorn2010-07-101-0/+83
| | | | Notes: svn path=/head/; revision=209880
* libc_r_* library is no more required, so just axe it.Attilio Rao2009-03-055-212/+0
| | | | | | | | Approved by: marcel, emaste Sponsored by: Sandvine Incorporated Notes: svn path=/head/; revision=189416
* Add the needed libpthread_md.c for MIPS.David E. O'Brien2008-08-281-0/+90
| | | | | | | Obtained from: Juniper Networks Notes: svn path=/head/; revision=182372
* Cleanup for WARNS 6.Marcel Moolenaar2008-08-064-14/+14
| | | | Notes: svn path=/head/; revision=181341
* Cleanup for WARNS 3.Marcel Moolenaar2008-07-316-7/+13
| | | | Notes: svn path=/head/; revision=181059
* Cleanup for WARNS 2.Marcel Moolenaar2008-07-312-1/+2
| | | | Notes: svn path=/head/; revision=181044
* Add arm support in libthread_db.Olivier Houchard2007-11-171-0/+116
| | | | Notes: svn path=/head/; revision=173703
* Include string.h for memcpy() and memcmp().Xin LI2007-05-251-0/+1
| | | | Notes: svn path=/head/; revision=169985
* Roughly implement libpthread support.Marcel Moolenaar2007-05-011-1/+19
| | | | Notes: svn path=/head/; revision=169187
* Remove alpha-specific stuff.Ruslan Ermilov2006-08-232-135/+0
| | | | Notes: svn path=/head/; revision=161547
* Add stub functions. This allows libthread_db to be built and installed,Marcel Moolenaar2006-08-042-0/+106
| | | | | | | which means that we also have <thread_db.h>. Notes: svn path=/head/; revision=160971
* Add support for XMM registers in GDB for x86 processors that supportDoug Rabson2005-05-311-0/+14
| | | | | | | | | | SSE (or its successors). Reviewed by: marcel, davidxu MFC After: 2 weeks Notes: svn path=/head/; revision=146818
* Add code to implement register structure converter.David Xu2004-08-011-1/+56
| | | | Notes: svn path=/head/; revision=132950
* prgregset_t changed type from being a typedef of struct reg to anMarcel Moolenaar2004-07-191-1/+1
| | | | | | | | array of one element of type struct reg. Change the argument to libc_r_md_getgregs() accordingly. Notes: svn path=/head/; revision=132409
* Correct the mess I made by committing from the wrong tree. MostMarcel Moolenaar2004-07-184-18/+9
| | | | | | | | | | | | notably, this restores some of the contents in thread_db.h as well as David Xu's copyright notice. This also fixes the includes in the MD libpthread files which Scott tried to provide a quick fix for. Pointy hat: marcel Notes: svn path=/head/; revision=132360
* Try to fix ia64 and alpha compiles. I don't have either equipment firedScott Long2004-07-182-0/+14
| | | | | | | up now, but it appears to be the same problem and solution as sparc64. Notes: svn path=/head/; revision=132352
* Add missing #includes so that this can compile. Obtained from the i386 version.Scott Long2004-07-181-0/+7
| | | | Notes: svn path=/head/; revision=132351
* Add rudimentary support and stubs for libthr and libc_r on alpha, amd64,Marcel Moolenaar2004-07-1810-0/+585
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