summaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-09-08 21:31:53 +0000
committerPedro Alves <pedro@codesourcery.com>2008-09-08 21:31:53 +0000
commit6ef86b2071a727b3201732a3146680bcaa5d52c5 (patch)
tree44160614e9b4491176e34daaec3232d7197ce07b /gdb/gnu-nat.c
parent2cdd388b596cbc2f6919e198751e3eeac9ba4598 (diff)
downloadgdb-6ef86b2071a727b3201732a3146680bcaa5d52c5.tar.gz
* procfs.c (to_attach): Create a procinfo for the current lwp.
Add it to gdb's thread list. (procfs_fetch_registers, procfs_store_registers): Assume there's always an lwp. (procfs_wait): Don't add the main thread here. (procfs_init_inferior): Create a procinfo for the main lwp here. Change main thread's ptid with thread_change_ptid. (procfs_notice_thread): Check for exited threads. (procfs_corefile_thread_callback): Remove check for the main process. (procfs_make_note_section): Assume there is always a thread. * sol-thread.c (sol_thread_attach): Clear sol_thread_active before attaching. Change the main thread ptid with thread_change_ptid. (sol_thread_detach): Clear sol_thread_active. (sol_thread_wait): Check for exited threads. (sol_thread_create_inferior): Clear sol_thread_active before creating a new inferior. Change the main thread ptid with thread_change_ptid. (sol_thread_mourn_inferior): Clear sol_thread_active. (sol_find_new_threads_callback): Check for exited threads.
Diffstat (limited to 'gdb/gnu-nat.c')
0 files changed, 0 insertions, 0 deletions