summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-26 16:32:35 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-26 16:32:35 +0100
commit1baa498b5537c487298a3fcdef33318e7a269045 (patch)
tree200392c17f6f583de29e0b61fd93dd74688d5263
parenta3b3135d3398f71368b075219b7021bb726e2bc3 (diff)
clouseau: fixup previous patches
the function arguments were passed in the wrong order, which resulted in a wonderfull backtrace. Further more, eolian decided to return NULL as class parents, and extensions. This _at_least_ brings back the basic works.
-rw-r--r--src/lib/clouseau_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/clouseau_debug.c b/src/lib/clouseau_debug.c
index 0307451..8d41ca5 100644
--- a/src/lib/clouseau_debug.c
+++ b/src/lib/clouseau_debug.c
@@ -777,16 +777,16 @@ _obj_info_req_cb(Eina_Debug_Session *session, int srcid, void *buffer, int size
777 Eina_Iterator *inherits_itr; 777 Eina_Iterator *inherits_itr;
778 778
779 parent = eolian_class_parent_get(kl); 779 parent = eolian_class_parent_get(kl);
780 if (!eina_list_data_find(list, parent)) 780 if (parent && !eina_list_data_find(list, parent))
781 list2 = eina_list_append(list, parent); 781 list2 = eina_list_append(list, parent);
782 782
783 inherits_itr = eolian_class_extensions_get(kl); 783 inherits_itr = eolian_class_extensions_get(kl);
784 size_curr += _class_buffer_fill(buf + size_curr, obj, kl); 784 size_curr += _class_buffer_fill(obj, kl, buf + size_curr);
785 785
786 EINA_ITERATOR_FOREACH(inherits_itr, inherit) 786 EINA_ITERATOR_FOREACH(inherits_itr, inherit)
787 { 787 {
788 /* Avoid duplicates in MRO list. */ 788 /* Avoid duplicates in MRO list. */
789 if (!eina_list_data_find(list, inherit)) 789 if (inherit && !eina_list_data_find(list, inherit))
790 list2 = eina_list_append(list, inherit); 790 list2 = eina_list_append(list, inherit);
791 } 791 }
792 eina_iterator_free(inherits_itr); 792 eina_iterator_free(inherits_itr);