OSDN Git Service

* remote-sim.c: Include gdbthread.h.
authorpalves <palves>
Wed, 9 Jul 2008 11:02:55 +0000 (11:02 +0000)
committerpalves <palves>
Wed, 9 Jul 2008 11:02:55 +0000 (11:02 +0000)
commit6175b4d16506db9076fef2ef1ca5687130bf86de
treebfe193be085f5c7caebdf880552a642926767dd5
parentd823ad35c93a7f76009e030160ae6dfaa21bace8
* 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