fix gbd debugging script
authorMisha Shneerson <mshneer@fb.com>
Tue, 6 Dec 2016 04:33:09 +0000 (20:33 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 6 Dec 2016 04:38:43 +0000 (20:38 -0800)
Summary:
I was getting an error when running commands in
https://our.intern.facebook.com/intern/dex/fibers/gdb/

Reviewed By: andriigrynenko

Differential Revision: D4283229

fbshipit-source-id: fe45847d0ec6cadfbce6fe9818066cce3e275a46

folly/fibers/scripts/utils.gdb

index 5e73aeaad095bdd3d0dfa916e4721e3103a5e24f..a3bd0c8cd8c2c1406e74806b22e0d60ddfce75e2 100644 (file)
@@ -82,8 +82,8 @@ end
 
 # Print global FiberManager map
 define print_folly_fiber_manager_map
-  set $global_cache=*(('folly::fibers::(anonymous namespace)::GlobalCache'**) \
-      &'folly::fibers::(anonymous namespace)::GlobalCache::instance()::ret')
+  set $global_cache=*(('folly::fibers::(anonymous namespace)::GlobalCache<folly::EventBase>'**) \
+      &'folly::fibers::(anonymous namespace)::GlobalCache<folly::EventBase>::instance()::ret')
   printf "  Global FiberManager map has %d entries.\n", \
          $global_cache->map_->_M_h->_M_element_count