{"action":"created","issue":{"url":"https://api.github.com/repos/jbevain/cecil/issues/299","repository_url":"https://api.github.com/repos/jbevain/cecil","labels_url":"https://api.github.com/repos/jbevain/cecil/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/jbevain/cecil/issues/299/comments","events_url":"https://api.github.com/repos/jbevain/cecil/issues/299/events","html_url":"https://github.com/jbevain/cecil/issues/299","id":184503364,"number":299,"title":"Problems with debug symbols API","user":{"login":"marek-safar","id":250852,"avatar_url":"https://avatars.githubusercontent.com/u/250852?v=3","gravatar_id":"","url":"https://api.github.com/users/marek-safar","html_url":"https://github.com/marek-safar","followers_url":"https://api.github.com/users/marek-safar/followers","following_url":"https://api.github.com/users/marek-safar/following{/other_user}","gists_url":"https://api.github.com/users/marek-safar/gists{/gist_id}","starred_url":"https://api.github.com/users/marek-safar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marek-safar/subscriptions","organizations_url":"https://api.github.com/users/marek-safar/orgs","repos_url":"https://api.github.com/users/marek-safar/repos","events_url":"https://api.github.com/users/marek-safar/events{/privacy}","received_events_url":"https://api.github.com/users/marek-safar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-21T14:44:59Z","updated_at":"2016-11-21T17:08:06Z","closed_at":null,"body":"The current design has few issues when dealing with debug symbols as it still relies on hardcoded platform specific values.\n- No simple way to read and write to same portable PDB file (similar to ReadWrite in ReaderParameters class) \n- No debug symbols auto-detection, which requires quite complex logic to be copied everywhere when dealing with ppdb/pdb/mdb support.\n- No support for embedded portable pdb\n"},"comment":{"url":"https://api.github.com/repos/jbevain/cecil/issues/comments/262001409","html_url":"https://github.com/jbevain/cecil/issues/299#issuecomment-262001409","issue_url":"https://api.github.com/repos/jbevain/cecil/issues/299","id":262001409,"user":{"login":"marek-safar","id":250852,"avatar_url":"https://avatars.githubusercontent.com/u/250852?v=3","gravatar_id":"","url":"https://api.github.com/users/marek-safar","html_url":"https://github.com/marek-safar","followers_url":"https://api.github.com/users/marek-safar/followers","following_url":"https://api.github.com/users/marek-safar/following{/other_user}","gists_url":"https://api.github.com/users/marek-safar/gists{/gist_id}","starred_url":"https://api.github.com/users/marek-safar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marek-safar/subscriptions","organizations_url":"https://api.github.com/users/marek-safar/orgs","repos_url":"https://api.github.com/users/marek-safar/repos","events_url":"https://api.github.com/users/marek-safar/events{/privacy}","received_events_url":"https://api.github.com/users/marek-safar/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T17:08:06Z","updated_at":"2016-11-21T17:08:06Z","body":"> #1 issue\r\n\r\nReadWrite is not available for debug symbols. If you use filename you hit https://github.com/jbevain/cecil/blob/68bcb750b898f4882a5af44299bb322aaa531f93/symbols/pdb/Mono.Cecil.Pdb/PdbHelper.cs#L25 so the file is open for reading only.\r\n\r\n> #2 issue\r\n\r\nif there is pdb and mdb for same assembly and they are both valid (MVID matching, etc) then it'd be fine to throw AmbiguousSymbolFileException or something like that. Similarly this could be implementation as some DetectionLogic class which could have the preferences set/adjusted by public API and the result then passed via existing API. I think any of this is better than today's approach of writing quite complex logic of headers decoding, files/streams matching\r\n\r\n> #3 issue\r\n\r\nHow do I configure Cecil to read **only** embedded portable pdb? "}}
{"actor":{"display_login":"marek-safar"}}