OSDN Git Service

* remote-sim.c: Include gdbthread.h.
authorPedro Alves <pedro@codesourcery.com>
Wed, 9 Jul 2008 11:02:56 +0000 (11:02 +0000)
committerPedro Alves <pedro@codesourcery.com>
Wed, 9 Jul 2008 11:02:56 +0000 (11:02 +0000)
commit61a04f82cf2720578da4c32b5342e391d1b13cce
treec721758f3ea83259566220fdb49dcb0404c4caaf
parent003697dbb3a36e6e6247fc5464b242a5df5294a2
* 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