* remote-sim.c: Include gdbthread.h.
authorPedro Alves <palves@redhat.com>
Wed, 9 Jul 2008 11:02:56 +0000 (11:02 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Jul 2008 11:02:56 +0000 (11:02 +0000)
commit9de2bdd7d43971a765aedb1773f9e175d98e98ba
treecbe78c0be3ddb57386d628d66e9096fa183f0824
parent5e0b29c16aca01c2a9a8ae251ee7998d96a32124
* remote-sim.c: Include gdbthread.h.
(remote_sim_ptid): New global.
(gdbsim_create_inferior): Silently add the main task to GDB's
thread list.
(gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
task from GDB's thread list.
(gdbsim_resume): Adjust to use remote_sim_ptid.
(gdbsim_thread_alive, gdbsim_pid_to_str): New.
(init_gdbsim_ops): Register gdbsim_thread_alive and
gdbsim_pid_to_str.
(_initialize_remote_sim): Initialize remote_sim_ptid.
* Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
gdb/ChangeLog
gdb/Makefile.in
gdb/remote-sim.c