[gnome-builder/gnome-builder-3-28] gdb: Show frames for selected thread
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-28] gdb: Show frames for selected thread
- Date: Tue, 27 Mar 2018 08:29:12 +0000 (UTC)
commit 4b777fcaff1bbd3904ac102e459b89869e0551a7
Author: albfan <albertofanjul gmail com>
Date: Mon Mar 26 22:57:52 2018 +0200
gdb: Show frames for selected thread
Changing thread is not stored so we cannot compare previous with selected thread
src/plugins/gdb/gbp-gdb-debugger.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/gdb/gbp-gdb-debugger.c b/src/plugins/gdb/gbp-gdb-debugger.c
index 71cc865c5..1f57b3ef8 100644
--- a/src/plugins/gdb/gbp-gdb-debugger.c
+++ b/src/plugins/gdb/gbp-gdb-debugger.c
@@ -2776,13 +2776,10 @@ gbp_gdb_debugger_exec_async (GbpGdbDebugger *self,
/* We might need to switch threads before we execute the command. */
if (thread != NULL)
{
- if (selected == NULL || ide_debugger_thread_compare (selected, thread) != 0)
- {
- const gchar *tid = ide_debugger_thread_get_id (thread);
+ const gchar *tid = ide_debugger_thread_get_id (thread);
- /* We ignore 9999 commands */
- g_string_append_printf (str, "9999-thread-select %s\n", tid);
- }
+ /* We ignore 9999 commands */
+ g_string_append_printf (str, "9999-thread-select %s\n", tid);
}
if (command[0] == '-' || strstr (command, "@@@@") != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]