{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/4678","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/4678/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/4678/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/4678/events","html_url":"https://github.com/radare/radare2/pull/4678","id":150287431,"number":4678,"title":"Debug plugin for QNX Neutrino pdebug interface","user":{"login":"madprogrammer","id":531058,"avatar_url":"https://avatars.githubusercontent.com/u/531058?v=3","gravatar_id":"","url":"https://api.github.com/users/madprogrammer","html_url":"https://github.com/madprogrammer","followers_url":"https://api.github.com/users/madprogrammer/followers","following_url":"https://api.github.com/users/madprogrammer/following{/other_user}","gists_url":"https://api.github.com/users/madprogrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/madprogrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madprogrammer/subscriptions","organizations_url":"https://api.github.com/users/madprogrammer/orgs","repos_url":"https://api.github.com/users/madprogrammer/repos","events_url":"https://api.github.com/users/madprogrammer/events{/privacy}","received_events_url":"https://api.github.com/users/madprogrammer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/radare/radare2/labels/debugger","name":"debugger","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/radare/radare2/milestones/12","html_url":"https://github.com/radare/radare2/milestones/0.10.3","labels_url":"https://api.github.com/repos/radare/radare2/milestones/12/labels","id":1598497,"number":12,"title":"0.10.3","description":"","creator":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"open_issues":82,"closed_issues":15,"state":"open","created_at":"2016-02-22T23:03:43Z","updated_at":"2016-04-22T09:49:15Z","due_on":"2016-05-22T22:00:00Z","closed_at":null},"comments":7,"created_at":"2016-04-22T07:01:04Z","updated_at":"2016-04-22T10:53:30Z","closed_at":"2016-04-22T09:48:04Z","pull_request":{"url":"https://api.github.com/repos/radare/radare2/pulls/4678","html_url":"https://github.com/radare/radare2/pull/4678","diff_url":"https://github.com/radare/radare2/pull/4678.diff","patch_url":"https://github.com/radare/radare2/pull/4678.patch"},"body":"I've made a debug plugin which connects to a QNX system, and allows to remotely debug programs via the QNX `pdebug` protocol (pulled from the QNX-modified version of GDB). The QNX OS itself can run on 32-bit Intel or 32-bit ARM architecture, but this plugin currently only supports Intel, though adding ARM support shouldn't be hard, but I didn't have a chance to test it with an ARM system yet.\r\n\r\nCurrent workflow should be as follows:\r\n  1. Run `r2 -D qnx -a x86 -b 32 qnx://1.2.3.4:8001`, where 8001 is the port you've ran `pdebug` on.\r\n  2. Run `dp*` to list remote processes with their process IDs.\r\n  3. Run `dpa <pid>` to attach to a PID of your choice.\r\n\r\nUse `radare2` debugger commands (`dr`, `ds`, `dc`, `db` etc.) as usual.\r\n\r\n**Known issues:**\r\n\r\nAt initial startup `radare2` tries to attach to a non-existent PID, which fails (`libr/core/io.c:16`):\r\n```\r\npid = *p; // 1st element in debugger's struct must be int\r\n```\r\nFuther commands will return errros until radare is attached to a valid remote process.\r\n\r\nARM32 target architecture support not yet implemented.\r\nSome code licensed under GPL due to the license of GDB."},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/213377319","html_url":"https://github.com/radare/radare2/pull/4678#issuecomment-213377319","issue_url":"https://api.github.com/repos/radare/radare2/issues/4678","id":213377319,"user":{"login":"madprogrammer","id":531058,"avatar_url":"https://avatars.githubusercontent.com/u/531058?v=3","gravatar_id":"","url":"https://api.github.com/users/madprogrammer","html_url":"https://github.com/madprogrammer","followers_url":"https://api.github.com/users/madprogrammer/followers","following_url":"https://api.github.com/users/madprogrammer/following{/other_user}","gists_url":"https://api.github.com/users/madprogrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/madprogrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madprogrammer/subscriptions","organizations_url":"https://api.github.com/users/madprogrammer/orgs","repos_url":"https://api.github.com/users/madprogrammer/repos","events_url":"https://api.github.com/users/madprogrammer/events{/privacy}","received_events_url":"https://api.github.com/users/madprogrammer/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T10:53:30Z","updated_at":"2016-04-22T10:53:30Z","body":"Sorry, I've got some trouble trying to set up a working Win32 build environment, and the MinGW build is slow by itself, compared to Linux build. Also I was going to build on MacOS too. If you can fix the build for me it's great."}}