{"action":"created","issue":{"url":"https://api.github.com/repos/mono/mono/issues/1581","labels_url":"https://api.github.com/repos/mono/mono/issues/1581/labels{/name}","comments_url":"https://api.github.com/repos/mono/mono/issues/1581/comments","events_url":"https://api.github.com/repos/mono/mono/issues/1581/events","html_url":"https://github.com/mono/mono/pull/1581","id":58258517,"number":1581,"title":"This change introduces \"overlapping\" indexes for locals debug info in mo...","user":{"login":"carlokok","id":238568,"avatar_url":"https://avatars.githubusercontent.com/u/238568?v=3","gravatar_id":"","url":"https://api.github.com/users/carlokok","html_url":"https://github.com/carlokok","followers_url":"https://api.github.com/users/carlokok/followers","following_url":"https://api.github.com/users/carlokok/following{/other_user}","gists_url":"https://api.github.com/users/carlokok/gists{/gist_id}","starred_url":"https://api.github.com/users/carlokok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlokok/subscriptions","organizations_url":"https://api.github.com/users/carlokok/orgs","repos_url":"https://api.github.com/users/carlokok/repos","events_url":"https://api.github.com/users/carlokok/events{/privacy}","received_events_url":"https://api.github.com/users/carlokok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-02-19T19:45:31Z","updated_at":"2015-03-16T13:10:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mono/mono/pulls/1581","html_url":"https://github.com/mono/mono/pull/1581","diff_url":"https://github.com/mono/mono/pull/1581.diff","patch_url":"https://github.com/mono/mono/pull/1581.patch"},"body":"This change introduces \"overlapping\" indexes for locals debug info in mono for the runtime. The debug info format and the soft debugger have logic already that makes this work, the only thing missing was to make mono return the index of locals with debug info instead of just of just one item by index.\r\n\r\nThis change should be backward/forward compatible (ie older debugger/newer debugger and same for runtime).\r\n\r\nWhat this fixes:\r\nCode like\r\n```\r\nvoid test() {\r\n  {\r\n    int a = 0;\r\n    Console.WriteLine(\"Got \" + a);\r\n  }\r\n  {\r\n    int b = 0;\r\n    Console.WriteLine(\"Got \" + b);\r\n  }\r\n}\r\n```\r\nWhere \"a\" and \"b\" reuse the same local variable slot.\r\n\r\nBefore this change \"a\" will show as a debug entry when it's in that scope. And in the scope for \"b\" nothing is shown at all. After this change both show as they should.\r\n\r\nThis change is released under the MIT license.\r\n"},"comment":{"url":"https://api.github.com/repos/mono/mono/issues/comments/81651903","html_url":"https://github.com/mono/mono/pull/1581#issuecomment-81651903","issue_url":"https://api.github.com/repos/mono/mono/issues/1581","id":81651903,"user":{"login":"Therzok","id":109974,"avatar_url":"https://avatars.githubusercontent.com/u/109974?v=3","gravatar_id":"","url":"https://api.github.com/users/Therzok","html_url":"https://github.com/Therzok","followers_url":"https://api.github.com/users/Therzok/followers","following_url":"https://api.github.com/users/Therzok/following{/other_user}","gists_url":"https://api.github.com/users/Therzok/gists{/gist_id}","starred_url":"https://api.github.com/users/Therzok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Therzok/subscriptions","organizations_url":"https://api.github.com/users/Therzok/orgs","repos_url":"https://api.github.com/users/Therzok/repos","events_url":"https://api.github.com/users/Therzok/events{/privacy}","received_events_url":"https://api.github.com/users/Therzok/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T13:10:18Z","updated_at":"2015-03-16T13:10:18Z","body":"3kb is not much, so binaries are ok in this case."}}