aboutsummaryrefslogtreecommitdiff
path: root/lib/libthread_db
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
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* 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-2612-11/+35
| | | | | | | | | | | | | | | 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
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* libthread_db: unbreak build due to sign/unsigned comparison.Pedro F. Giffuni2017-04-201-2/+2
| | | | | | | Reported by: lwshu Notes: svn path=/head/; revision=317216
* libpthread_db: undo the memset size change.Pedro F. Giffuni2017-04-201-1/+1
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=317203
* Revert r317201 to fix the log.Pedro F. Giffuni2017-04-201-1/+1
| | | | Notes: svn path=/head/; revision=317202
* libpthread_db: leave the memset size from unchanged.Pedro F. Giffuni2017-04-201-1/+1
| | | | | | | | | | 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 Notes: svn path=/head/; revision=317201
* libthread_db: unsign map_len and use reallocarray(3).Pedro F. Giffuni2017-04-202-7/+8
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=317200
* 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
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-01-201-1/+1
| | | | | | | | | | This implifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312468
* First pass through library packaging.Glen Barber2016-02-041-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* 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
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
* new dependsSimon J. Gerraty2015-06-161-1/+0
| | | | Notes: svn path=/head/; revision=284481
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-1/+97
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-192-65/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2013-09-052-7/+7
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | | Sync from headSimon J. Gerraty2012-11-042-2/+2
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | 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
* | Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-10-192-2/+2
|/ | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=241720
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, toDimitry Andric2012-02-281-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks Notes: svn path=/head/; revision=232263
* In lib/libthread_db/arch/i386/libpthread_md.c, clang gives two incorrectDimitry Andric2011-12-161-0/+6
| | | | | | | | | warnings about alignment, so turn -Wcast-align off for now. MFC after: 1 week Notes: svn path=/head/; revision=228578
* 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
* 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
* 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
* 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
* MFtbemd:Warner Losh2010-08-231-1/+1
| | | | | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
* Powerpc64 thread libraries support.Nathan Whitehorn2010-07-101-0/+83
| | | | Notes: svn path=/head/; revision=209880
* Extend the td_thrinfo_t to include siginfo for the signal that stoppedKonstantin Belousov2010-07-046-3/+71
| | | | | | | | | | the target. Take care of ABI. Suggested by: davidxu MFC after: 2 weeks Notes: svn path=/head/; revision=209689
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Revert r181651, which changed the ABI, and use a temp variable instead.Dag-Erling Smørgrav2009-06-092-2/+4
| | | | | | | Suggested by: attilio Notes: svn path=/head/; revision=193826
* libc_r_* library is no more required, so just axe it.Attilio Rao2009-03-056-563/+0
| | | | | | | | Approved by: marcel, emaste Sponsored by: Sandvine Incorporated Notes: svn path=/head/; revision=189416