Provide default target methods for record targets that are likely to be shared
authorMarkus Metzger <mmetzger@sourceware.org>
Mon, 11 Mar 2013 08:47:10 +0000 (08:47 +0000)
committerMarkus Metzger <mmetzger@sourceware.org>
Mon, 11 Mar 2013 08:47:10 +0000 (08:47 +0000)
commit7c1687a9661c460fac39e57a451a90c5f48213d9
tree35ee2e97db0ea8485c239d209c625aa80eaad35e
parent25ea693b87da84e449d731c609b0fd744092e70d
Provide default target methods for record targets that are likely to be shared
between different record targets.

gdb/
* record.h (record_disconnect): New.
(record_detach): New.
(record_mourn_inferior): New.
(record_kill): New.
* record-full.c (record_disconnect, record_detach,
record_mourn_inferior, record_kill): Move to...
* record.c: ...here.
(DEBUG): New.
(record_stop): New.
(record_unpush): New.
(cmd_record_stop): Call record_stop. Replace unpush_target
call with record_unpush call.
(record_disconnect, record_detach): Assert that the target
is of record stratum. Call record_unpush, record_stop, and
DEBUG.
(record_mourn_inferior, record_kill): Assert that the target
is of record stratum. Call record_unpush and DEBUG.
gdb/ChangeLog
gdb/record-full.c
gdb/record.c
gdb/record.h
gdb/target.c
gdb/target.h