OSDN Git Service

* corelow.c (core_has_fake_pid): New.
authorPedro Alves <pedro@codesourcery.com>
Fri, 9 Oct 2009 00:49:05 +0000 (00:49 +0000)
committerPedro Alves <pedro@codesourcery.com>
Fri, 9 Oct 2009 00:49:05 +0000 (00:49 +0000)
commitd437c0cdcd0e7b4c162f84fcc6151bb94fd98346
treeabc6eee30f40d7b805c6608dbe61cdbe18036585
parent5724ecd4585643787bcabb7e12e5a0b2a8099395
* 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