OSDN Git Service

* corelow.c (add_to_thread_list): If this is the first time we
authorPedro Alves <pedro@codesourcery.com>
Mon, 8 Sep 2008 21:36:00 +0000 (21:36 +0000)
committerPedro Alves <pedro@codesourcery.com>
Mon, 8 Sep 2008 21:36:00 +0000 (21:36 +0000)
commit85d1e5e3e7b30ec60024acf2976b22c2da5c4c43
treed0a9dcc967710de168255312ce9f924ff9b31443
parenta8c9b9db9e319ca9fd58692e6697c92ff09beef0
* 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