This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[MI non-stop 09/11] Don't care about user-defined thread if --thread is present.


If an MI command has --thread parameter, we don't care in any way
that user selected thread is. Will commit after core non-stop is in.

- Volodya

	* mi/mi-main.c (mi_cmd_execute): Suppress check for
	non-null user-selected thread if explicit thread is specified.
---
 gdb/mi/mi-main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 0b5d076..7d4adc4 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1184,7 +1184,8 @@ mi_cmd_execute (struct mi_parse *parse)
   
   if (parse->cmd->argv_func != NULL)
     {
-      if (target_can_async_p ()
+      if (parse->thread == -1
+	  && target_can_async_p ()
 	  && target_has_execution
  	  && (ptid_equal (user_selected_ptid, null_ptid))
 	  && (strcmp (parse->command, "thread-info") != 0
-- 
1.5.3.5



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]