[nemiver/remote-cmdline: 9/14] Add IDebugger::disconnect_from_remote_target
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver/remote-cmdline: 9/14] Add IDebugger::disconnect_from_remote_target
- Date: Mon, 11 Oct 2010 19:07:00 +0000 (UTC)
commit 227c78d46020a8016f141f6f9c398867b14525ba
Author: Dodji Seketeli <dodji seketeli org>
Date: Mon Oct 11 16:31:31 2010 +0200
Add IDebugger::disconnect_from_remote_target
* src/dbgengine/nmv-i-debugger.h
(IDebugger::disconnect_from_remote_target): New API.
* src/dbgengine/nmv-gdb-engine.h
(GDBEngine::disconnect_from_remote_target): Likewise.
* src/dbgengine/nmv-gdb-engine.cc
(GDBEngine::disconnect_from_remote_target): Implement the new API.
src/dbgengine/nmv-gdb-engine.cc | 9 +++++++++
src/dbgengine/nmv-gdb-engine.h | 3 +++
src/dbgengine/nmv-i-debugger.h | 2 ++
3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index 9c30159..f24ad55 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -2794,6 +2794,15 @@ GDBEngine::detach_from_target (const UString &a_cookie)
queue_command (Command ("detach-from-target", "-target-detach", a_cookie));
}
+void
+GDBEngine::disconnect_from_remote_target (const UString &a_cookie)
+{
+ LOG_FUNCTION_SCOPE_NORMAL_DD;
+
+ queue_command (Command ("disconnect-from-remote-target",
+ "-target-disconnect", a_cookie));
+}
+
bool
GDBEngine::is_attached_to_target () const
{
diff --git a/src/dbgengine/nmv-gdb-engine.h b/src/dbgengine/nmv-gdb-engine.h
index 5a5c253..4dc52e1 100644
--- a/src/dbgengine/nmv-gdb-engine.h
+++ b/src/dbgengine/nmv-gdb-engine.h
@@ -265,6 +265,9 @@ public:
bool attach_to_remote_target (const UString &a_serial_line);
void detach_from_target (const UString &a_cookie="");
+ void detach_from_target (const UString &a_cookie);
+
+ void disconnect_from_remote_target (const UString &a_cookie);
bool is_attached_to_target () const;
diff --git a/src/dbgengine/nmv-i-debugger.h b/src/dbgengine/nmv-i-debugger.h
index 5d11e6b..6a75170 100644
--- a/src/dbgengine/nmv-i-debugger.h
+++ b/src/dbgengine/nmv-i-debugger.h
@@ -1041,6 +1041,8 @@ public:
virtual void detach_from_target (const UString &a_cookie="") = 0;
+ virtual void disconnect_from_remote_target (const UString &a_cookie = "") = 0;
+
virtual bool is_attached_to_target () const =0;
virtual void set_tty_path (const UString &a_tty_path) = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]