marcel
0bfdb53f7a
Add thr_pread_{int,long,ptr} and thr_pwrite_{int,long,ptr} to
...
help abstract the sizes and endianness of the primary types of
the target. These currently use the native characteristics.
2008-07-31 20:25:52 +00:00
marcel
26ada4b390
Cleanup for WARNS 3.
2008-07-31 16:26:58 +00:00
marcel
e92a1d88d1
Cleanup for WARNS 2.
2008-07-31 05:25:52 +00:00
marcel
b40c2c680d
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.
2008-07-30 00:59:19 +00:00
jeff
e1e2efa7be
- Restore kse.h in this directory so other tools don't find it by mistake.
...
- Restore the ability to debug kse coredumps in 8.0.
Suggested by: marcel
2008-03-23 09:38:11 +00:00
davidxu
3367c267b3
Use linker set to collection all target operations.
2008-03-22 05:40:44 +00:00
jeff
0409b8b057
- Remove libkse and related support code in libpthread from the build.
...
Don't remove the files yet. Kernel support will be removed shortly.
2008-03-12 09:49:39 +00:00
cognet
d4045dcd3e
Add arm support in libthread_db.
2007-11-17 21:27:53 +00:00
delphij
7155705048
Include string.h for memcpy() and memcmp().
2007-05-25 13:43:14 +00:00
deischen
ff36458e08
Bump library versions in preparation for 7.0.
...
Ok'd by: kan
2007-05-21 02:49:08 +00:00
deischen
bf3a79274d
Enable symbol versioning by default. Use WITHOUT_SYMVER to disable it.
...
Warning, after symbol versioning is enabled, going back is not easy
(use WITHOUT_SYMVER at your own risk).
Change the default thread library to libthr.
There most likely still needs to be a version bump for at least the
thread libraries. If necessary, this will happen later.
2007-05-13 14:12:40 +00:00
marcel
1f3a6143f7
Roughly implement libpthread support.
2007-05-01 18:28:08 +00:00
deischen
2a7306fdc5
Use C comments since we now preprocess these files with CPP.
2007-04-29 14:05:22 +00:00
davidxu
df52e86556
remove libc_r remanent.
2006-10-20 14:15:42 +00:00
davidxu
d31c0f57db
Remove libc_r support.
2006-10-05 06:26:31 +00:00
ru
aa1113efea
Remove alpha-specific stuff.
2006-08-23 12:12:56 +00:00
marcel
4369bfea09
Add stub functions. This allows libthread_db to be built and installed,
...
which means that we also have <thread_db.h>.
2006-08-04 17:55:55 +00:00
davidxu
abd1aa54e6
Fix return value.
2006-05-17 05:14:45 +00:00
davidxu
c28c63ba32
get thread signal info.
2006-05-17 05:12:42 +00:00
deischen
b19d325a18
Add symbol versioning.
...
Reviewed by: davidxu
2006-03-29 14:08:45 +00:00
davidxu
b9945d52e2
Use ps_linfo to retrieve LWP info, current it is used to retrieve
...
signal mask and pending signals.
2006-02-07 02:55:34 +00:00
davidxu
6cfb2f2fce
Use ps_linfo to retrieve LWP info.
2006-02-07 02:51:25 +00:00
davidxu
879ea1a11b
Replace ptrace syscall with ps_lgetgregs to check a LWP's existence.
2006-02-07 02:12:33 +00:00
davidxu
f9048c6816
Always clear thread info buffer to zero.
2006-02-06 11:54:19 +00:00
kensmith
f97f77429f
Bump the shared library version number of all libraries that have not
...
been bumped since RELENG_5.
Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)
2005-07-22 17:19:05 +00:00
dfr
874478d7fd
Add support for XMM registers in GDB for x86 processors that support
...
SSE (or its successors).
Reviewed by: marcel, davidxu
MFC After: 2 weeks
2005-05-31 09:43:04 +00:00
charnier
3ee2620203
Remove unused variables.
2005-05-20 13:09:49 +00:00
davidxu
03aa59f2ee
o Code cleanup, eliminate private thread id map, directly
...
use lwpid as thread id.
o Export tls pointer.
2005-04-13 04:57:38 +00:00
davidxu
1f525cc190
Fill traceme and events fields.
2005-04-12 23:33:08 +00:00
davidxu
6b1b88e88d
Sync with debugger code in libthr.
2005-04-12 03:03:16 +00:00
davidxu
e911a0459c
Export thread address.
2005-04-05 11:38:30 +00:00
davidxu
6c73121667
Update debugger code for new libthr.
2005-04-02 01:36:21 +00:00
davidxu
cea7c80bb2
Plug a memory leak in error case.
2004-08-16 05:20:12 +00:00
davidxu
83403f3840
1. Use libpthread's exported symbols to calcuate offset in data structure
...
2. Enable TLS debugger support.
2004-08-16 03:30:16 +00:00
davidxu
fd9ef6980b
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.
2004-08-13 06:47:33 +00:00
davidxu
d29ded002b
1.Use new way to check if a thread is in critical region, defer suspending
...
if it is true.
2.Add thread_db api td_thr_tls_get_addr to get tls address, the real code
is commented out util tls patch is committed.
Reviewed by: deischen
2004-08-08 22:37:53 +00:00
davidxu
6f2afa324d
s/TMDF_DONOTRUNUSER/TMDF_SUSPEND/g
...
Dicussed with: deischen
2004-08-03 02:23:06 +00:00
davidxu
48aa6dbfe6
Add missing thread suspension/resumption code, fix a bug in pt_thr_sstep,
...
don't overwrite other debug flags.
2004-08-01 04:57:04 +00:00
davidxu
90d872025e
Add code to implement register structure converter.
2004-08-01 02:08:39 +00:00
marcel
b436b7430e
prgregset_t changed type from being a typedef of struct reg to an
...
array of one element of type struct reg. Change the argument to
libc_r_md_getgregs() accordingly.
2004-07-19 16:54:52 +00:00
marcel
820f19dbd5
This library is not WARNS=2 clean for -O2 builds, because we include
...
headers from libpthread that are not WARNS=2 clean for -O2 builds.
Lower the WARNS level to 1. This is the highest level possible for
now.
2004-07-18 19:33:56 +00:00
marcel
bfb6f90a9e
Correct the mess I made by committing from the wrong tree. Most
...
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
2004-07-18 19:29:38 +00:00
scottl
cf328c1057
Try to fix ia64 and alpha compiles. I don't have either equipment fired
...
up now, but it appears to be the same problem and solution as sparc64.
2004-07-18 15:24:37 +00:00
scottl
5e3b195590
Add missing #includes so that this can compile. Obtained from the i386 version.
2004-07-18 15:20:03 +00:00
marcel
03a64a6205
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
2004-07-18 04:17:15 +00:00
marcel
324c7572c7
Add the const qualifier to the prgregset_t argument for the *setregs*
...
functions.
2004-07-17 17:09:12 +00:00
davidxu
f64cd4bec9
Add my initial work of libthread_db. The library is used by gdb to debug
...
threaded process. Current, only libpthread is supported, but macrel will
work on it to support libthr and libc_r.
2004-07-15 03:36:35 +00:00