* corelow.c (add_to_thread_list): If this is the first time we
authorPedro Alves <palves@redhat.com>
Mon, 8 Sep 2008 21:36:01 +0000 (21:36 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 8 Sep 2008 21:36:01 +0000 (21:36 +0000)
commit0de3b513a4e23127727d27eb0a1d8804ac9f3c3e
tree5b2f0bb8cbd9539395c83096f8e057fd6d31d30a
parent4189d2f820eb9ac989389d6be52ce473ea493b1a
* corelow.c (add_to_thread_list): If this is the first time we
hear about thread info, update inferior_ptid.
(core_open): Clear the thread list and set inferior_ptid before
acknowledging a new inferior.  Find threads before fetching
register info.  Give an upper target layer a chance to find and
claim new threads.  Print core generation and stop signal info
after finding new threads.
(get_core_register_section): Look at the lwp member of
inferior_ptid for detecting if we have threads info, instead of
the pid member.
(core_pid_to_str): New.
(init_core_ops): Register core_pid_to_str.
gdb/ChangeLog
gdb/corelow.c