Skip to content

Commit cace3a4

Browse files
committed
Add some more debug logging.
1 parent c489cc9 commit cace3a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

loader.c

+6
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ PUBLIC void __objc_load(struct objc_init *init)
250250
{
251251
CurrentABI = UnknownABI;
252252
}
253+
#ifdef DEBUG_LOADING
254+
fprintf(stderr, "Loading class %s\n", (*cls)->name);
255+
#endif
253256
objc_load_class(*cls);
254257
}
255258
#if 0
@@ -268,6 +271,9 @@ PUBLIC void __objc_load(struct objc_init *init)
268271
continue;
269272
}
270273
objc_try_load_category(cat);
274+
#ifdef DEBUG_LOADING
275+
fprintf(stderr, "Loading category %s (%s)\n", cat->class_name, cat->name);
276+
#endif
271277
}
272278
// Load categories and statics that were deferred.
273279
objc_load_buffered_categories();

0 commit comments

Comments
 (0)