This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb ChangeLog thread-db.c
- From: drow at sources dot redhat dot com
- To: gdb-cvs at sources dot redhat dot com
- Date: 13 Jan 2003 21:48:33 -0000
- Subject: src/gdb ChangeLog thread-db.c
CVSROOT: /cvs/src
Module name: src
Changes by: drow@sourceware.org 2003-01-13 13:48:33
Modified files:
gdb : ChangeLog thread-db.c
Log message:
* thread-db.c (attach_thread): Prototype.
(struct private_thread_info): Remove lwpid. Add thread handle (th),
thread information (ti), and valid flags (th_valid, ti_valid).
(attach_thread): Move target_pid_to_str call to after the thread
is added to GDB's list. Initialize the cache.
(thread_get_info_callback, thread_db_map_id2thr)
(thread_db_get_info): New functions.
(thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
(thread_db_store_registers, thread_db_thread_alive)
(thread_db_get_thread_local_address): Use them.
(thread_db_pid_to_str): Likewise. Return "Missing" instead
of calling error() for threads in unknown state.
(clear_lwpid_callback): New function.
(thread_db_resume): Use it to clear the cache.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.3716&r2=1.3717
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/thread-db.c.diff?cvsroot=src&r1=1.26&r2=1.27