{"action":"created","issue":{"url":"https://api.github.com/repos/derekparker/delve/issues/1224","repository_url":"https://api.github.com/repos/derekparker/delve","labels_url":"https://api.github.com/repos/derekparker/delve/issues/1224/labels{/name}","comments_url":"https://api.github.com/repos/derekparker/delve/issues/1224/comments","events_url":"https://api.github.com/repos/derekparker/delve/issues/1224/events","html_url":"https://github.com/derekparker/delve/pull/1224","id":329407936,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyNjcwMTgy","number":1224,"title":"proc: add support for separate debug info","user":{"login":"slp","id":511389,"node_id":"MDQ6VXNlcjUxMTM4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/511389?v=4","gravatar_id":"","url":"https://api.github.com/users/slp","html_url":"https://github.com/slp","followers_url":"https://api.github.com/users/slp/followers","following_url":"https://api.github.com/users/slp/following{/other_user}","gists_url":"https://api.github.com/users/slp/gists{/gist_id}","starred_url":"https://api.github.com/users/slp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slp/subscriptions","organizations_url":"https://api.github.com/users/slp/orgs","repos_url":"https://api.github.com/users/slp/repos","events_url":"https://api.github.com/users/slp/events{/privacy}","received_events_url":"https://api.github.com/users/slp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-05T11:08:40Z","updated_at":"2018-06-05T11:11:52Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/derekparker/delve/pulls/1224","html_url":"https://github.com/derekparker/delve/pull/1224","diff_url":"https://github.com/derekparker/delve/pull/1224.diff","patch_url":"https://github.com/derekparker/delve/pull/1224.patch"},"body":"To save disk space, some distributions strip the debugging information\r\nfrom the binaries, putting it in separate files, usually distributed in\r\nseparate packages.\r\n\r\nTo locate the file containing the debug information for a certain\r\nbinary, an ELF note named \".note.gnu.build-id\" is added to the latter,\r\nwhich contains a header and a build identification. This identification\r\ncan be used to compose a path with this form:\r\n\r\n/usr/lib/debug/.build-id/BUILDID[:2]/BUILDID[2:].debug\r\n\r\nWith this patch, if Delve can't find the debug information in the main\r\nbinary, it'll try to locate and parse \".note.gnu.build-id\", to compose\r\nand attempt to open a path with the format described above.\r\n\r\nFixes #1206"},"comment":{"url":"https://api.github.com/repos/derekparker/delve/issues/comments/394670901","html_url":"https://github.com/derekparker/delve/pull/1224#issuecomment-394670901","issue_url":"https://api.github.com/repos/derekparker/delve/issues/1224","id":394670901,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDY3MDkwMQ==","user":{"login":"slp","id":511389,"node_id":"MDQ6VXNlcjUxMTM4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/511389?v=4","gravatar_id":"","url":"https://api.github.com/users/slp","html_url":"https://github.com/slp","followers_url":"https://api.github.com/users/slp/followers","following_url":"https://api.github.com/users/slp/following{/other_user}","gists_url":"https://api.github.com/users/slp/gists{/gist_id}","starred_url":"https://api.github.com/users/slp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slp/subscriptions","organizations_url":"https://api.github.com/users/slp/orgs","repos_url":"https://api.github.com/users/slp/repos","events_url":"https://api.github.com/users/slp/events{/privacy}","received_events_url":"https://api.github.com/users/slp/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T11:11:52Z","updated_at":"2018-06-05T11:11:52Z","author_association":"CONTRIBUTOR","body":"As the Go compiler doesn't add a \".note.gnu.build-id\" note by itself, writing a test for this for would require specialized linking, stripping, and composing of the path. I don't think that's feasible without important changes in the test framework, and that probably is not worth for such a small change."}}
{"actor":{"display_login":"slp"}}