* corelow.c (core_has_fake_pid): New.
authorPedro Alves <palves@redhat.com>
Fri, 9 Oct 2009 00:49:06 +0000 (00:49 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 9 Oct 2009 00:49:06 +0000 (00:49 +0000)
commit3cdd9356b1e2c0ffdf3cfb7aa06123542a93ce88
treed12448c9d2310a0a7a8a4b126fdf4e6f98860ab6
parentcdbfd4198ec38a42766a578d4058bd752d25011c
* corelow.c (core_has_fake_pid): New.
(core_close): Clear it.
(add_to_thread_list): Fake a pid if one is not found on a Solaris
core.  Add the inferior here.  Always add the thread, don't use
thread_change_ptid.
(core_open): Don't add the main thread or the inferior here unless
we find that the core had no .reg/NN sections.
(get_core_register_section): Handle Solaris cores with fake pids.
gdb/ChangeLog
gdb/corelow.c