Browse Source

gdbinit: new function to print data's post sync tasks

Nathalie Furmento 14 years ago
parent
commit
20cb8f2fef
1 changed files with 12 additions and 0 deletions
  1. 12 0
      tools/gdbinit

+ 12 - 0
tools/gdbinit

@@ -91,6 +91,18 @@ define starpu
   printf "Here I am...\n"
 end
 
+define starpu-print-data
+  set language c
+  set $data = $arg0
+  printf "Home node %d\n", $data->home_node
+  printf "Post sync tasks\n"
+  set $tasklist = $data->post_sync_tasks
+  while $tasklist != 0x0
+    starpu-print-task $tasklist->task
+    set $tasklist = $tasklist->next
+  end
+end
+
 document starpu
 List of StarPU-specific gdb functions:
 starpu-workers		prints a list of the StarPU workers