{"action":"opened","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/3129","labels_url":"https://api.github.com/repos/radare/radare2/issues/3129/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/3129/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/3129/events","html_url":"https://github.com/radare/radare2/issues/3129","id":102451655,"number":3129,"title":"Remote debugging buffer size problem when connecting to gdbserver","user":{"login":"itsbriany","id":6740119,"avatar_url":"https://avatars.githubusercontent.com/u/6740119?v=3","gravatar_id":"","url":"https://api.github.com/users/itsbriany","html_url":"https://github.com/itsbriany","followers_url":"https://api.github.com/users/itsbriany/followers","following_url":"https://api.github.com/users/itsbriany/following{/other_user}","gists_url":"https://api.github.com/users/itsbriany/gists{/gist_id}","starred_url":"https://api.github.com/users/itsbriany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsbriany/subscriptions","organizations_url":"https://api.github.com/users/itsbriany/orgs","repos_url":"https://api.github.com/users/itsbriany/repos","events_url":"https://api.github.com/users/itsbriany/events{/privacy}","received_events_url":"https://api.github.com/users/itsbriany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-21T19:55:41Z","updated_at":"2015-08-21T19:55:41Z","closed_at":null,"body":"Hi, I am having buffer problems with remote debugging. I am connecting to gdbserver on localhost:1234 with r2. I am running Ubuntu Linux 14.04 LTS x86_64.\r\n\r\nHere is my version of gdbserver:\r\n\r\n```bash\r\nitsbriany@linux:~/Playground/infosec/c++$ gdbserver --version\r\nGNU gdbserver (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1\r\nCopyright (C) 2014 Free Software Foundation, Inc.\r\ngdbserver is free software, covered by the GNU General Public License.\r\nThis gdbserver was configured as \"x86_64-linux-gnu\"\r\n```\r\n\r\nMy last build of r2 was two days ago.\r\n\r\nHere is my command to starting gdbserver:\r\n```bash\r\nitsbriany@linux:~/Playground/infosec/c++$ gdbserver localhost:1234 a.out \r\nProcess a.out created; pid = 2730\r\nListening on port 1234\r\nRemote debugging from host 127.0.0.1\r\n```\r\n\r\nHere is my output when connecting to gdbserver with r2:\r\n\r\n```bash\r\nitsbriany@linux:~/Playground$ r2 -D gdb gdb://localhost:1234\r\nDebugging pid = 6, tid = 6 now\r\nXWJSTEP TOFALSE\r\nAttached debugger to pid = 22758384, tid = 1\r\nDebugging pid = 22758384, tid = 1 now\r\nr_debug_gdb_reg_read: small buffer 536 vs 544\r\nr_debug_gdb_reg_read: small buffer 536 vs 544\r\n -- Now featuring NoSQL!\r\nr_debug_gdb_reg_read: small buffer 536 vs 544\r\n[0x7ffff7ddb2d0]> aa\r\nr_debug_gdb_reg_read: small buffer 536 vs 544\r\n[0x7ffff7ddb2d0]> iz\r\n\r\nr_debug_gdb_reg_read: small buffer 536 vs 544\r\n[0x7ffff7ddb2d0]> iI\r\n\r\nr_debug_gdb_reg_read: small buffer 536 vs 544\r\n[0x7ffff7ddb2d0]>\r\n```\r\n\r\nI can still print disassembly with the command: \"pd\", but I cannot get any information on the binary with commands such as \"iz\", \"iI\", etc.\r\n\r\nIs this buffer problem a bug or am I not properly connecting to gdbserver?\r\n\r\n\r\n "}}