diff options
author | Nicholas Duffek <nsd@redhat.com> | 2000-04-07 01:14:10 +0000 |
---|---|---|
committer | Nicholas Duffek <nsd@redhat.com> | 2000-04-07 01:14:10 +0000 |
commit | 2f09097b734af8840d2141a26a53b9c67e67fcf2 (patch) | |
tree | c6fd0a041816d5bfb6211d1fde18788f1e51d223 /gdb/config/i386/tm-i386sol2.h | |
parent | 34cbe64ecf7ae8c7e029e4af582d98a7910a3bcf (diff) | |
download | gdb-2f09097b734af8840d2141a26a53b9c67e67fcf2.zip gdb-2f09097b734af8840d2141a26a53b9c67e67fcf2.tar.gz gdb-2f09097b734af8840d2141a26a53b9c67e67fcf2.tar.bz2 |
* sol-thread.c (GET_LWP, GET_THREAD, BUILD_LWP, BUILD_THREAD):
Change to rely on PIDGET etc.
* config/i386/nm-i386sol2.h (TARGET_HAS_WATCHPOINTS,
TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
STOPPED_BY_WATCHPOINT, target_[insert/remove]_watchpoint):
define. Allow target to use procfs hardware watchpoints.
* config/sparc/nm-sun4sol2.h: ditto.
* config/i386/tm-i386sol2.h (PIDGET, TIDGET, MERGEPID): modify
definitions to use 16 bits for the pid, 15 bits for the tid, and
1 bit for the flag.
* config/sparc/tm-sun4sol2.h: ditto.
(SOFTWARE_SINGLE_STEP, SOFTWARE_SINGLE_STEP_P): undefine.
* testsuite/gdb.threads/pthreads.exp (all_threads_running): Allow
for more than 15 thread increments.
Diffstat (limited to 'gdb/config/i386/tm-i386sol2.h')
-rw-r--r-- | gdb/config/i386/tm-i386sol2.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/config/i386/tm-i386sol2.h b/gdb/config/i386/tm-i386sol2.h index 0967ba5..da231eb 100644 --- a/gdb/config/i386/tm-i386sol2.h +++ b/gdb/config/i386/tm-i386sol2.h @@ -42,9 +42,11 @@ extern char *sunpro_static_transform_name PARAMS ((char *)); #define FAULTED_USE_SIGINFO -/* Macros to extract process id and thread id from a composite pid/tid */ -#define PIDGET(pid) ((pid) & 0xffff) -#define TIDGET(pid) (((pid) >> 16) & 0xffff) -#define MERGEPID(pid, tid) (((tid) << 16) | (pid)) +/* Macros to extract process id and thread id from a composite pid/tid. + Allocate lower 16 bits for process id, next 15 bits for thread id, and + one bit for a flag to indicate a user thread vs. a kernel thread. */ +#define PIDGET(PID) (((PID) & 0xffff)) +#define TIDGET(PID) (((PID) & 0x7fffffff) >> 16) +#define MERGEPID(PID, TID) (((PID) & 0xffff) | ((TID) << 16)) #endif /* ifndef TM_I386SOL2_H */ |