{"id":2406,"date":"2010-04-24T13:23:37","date_gmt":"2010-04-24T17:23:37","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=2406"},"modified":"2010-04-24T13:23:40","modified_gmt":"2010-04-24T17:23:40","slug":"gdb-scheduler-locking","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2010\/04\/24\/gdb-scheduler-locking\/","title":{"rendered":"Using GDB&rsquo;s &lsquo;po&rsquo; Command While a Malloc Lock Is Being Held"},"content":{"rendered":"<p><a href=\"http:\/\/www.fatcatsoftware.com\/blog\/2010\/using-gdbs-po-command-while-a-malloc-lock-is-being-held\">Brian Webster<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.fatcatsoftware.com\/blog\/2010\/using-gdbs-po-command-while-a-malloc-lock-is-being-held\"><p>What this does, when enabled, is to cause GDB to <em>only run the current thread<\/em> when you click the &ldquo;Continue&rdquo; button or use the &ldquo;continue&rdquo; command from the GDB console, rather than running all threads at once. To enable this behavior, you can simply type &ldquo;set scheduler-locking on&rdquo; on the console.\n<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Brian Webster: What this does, when enabled, is to cause GDB to only run the current thread when you click the &ldquo;Continue&rdquo; button or use the &ldquo;continue&rdquo; command from the GDB console, rather than running all threads at once. To enable this behavior, you can simply type &ldquo;set scheduler-locking on&rdquo; on the console.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2406","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=2406"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2406\/revisions"}],"predecessor-version":[{"id":2407,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/2406\/revisions\/2407"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=2406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=2406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=2406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}