{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/4798","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/4798/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/4798/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/4798/events","html_url":"https://github.com/radare/radare2/issues/4798","id":153584662,"number":4798,"title":"ARM (32bit) only: 16bit (THUMB) setting was turned back to 32bit during virtual mode","user":{"login":"unixfreaxjp","id":8689713,"avatar_url":"https://avatars.githubusercontent.com/u/8689713?v=3","gravatar_id":"","url":"https://api.github.com/users/unixfreaxjp","html_url":"https://github.com/unixfreaxjp","followers_url":"https://api.github.com/users/unixfreaxjp/followers","following_url":"https://api.github.com/users/unixfreaxjp/following{/other_user}","gists_url":"https://api.github.com/users/unixfreaxjp/gists{/gist_id}","starred_url":"https://api.github.com/users/unixfreaxjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixfreaxjp/subscriptions","organizations_url":"https://api.github.com/users/unixfreaxjp/orgs","repos_url":"https://api.github.com/users/unixfreaxjp/repos","events_url":"https://api.github.com/users/unixfreaxjp/events{/privacy}","received_events_url":"https://api.github.com/users/unixfreaxjp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/radare/radare2/labels/ARM","name":"ARM","color":"0052cc"}],"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":57,"closed_issues":63,"state":"open","created_at":"2016-02-22T23:03:43Z","updated_at":"2016-05-11T20:38:06Z","due_on":"2016-05-22T22:00:00Z","closed_at":null},"comments":18,"created_at":"2016-05-07T09:24:31Z","updated_at":"2016-05-11T20:44:50Z","closed_at":"2016-05-11T13:42:17Z","body":"in arm cpu linux latest pull  (radare2 0.10.3-git 11147 @ linux-arm-32 git.0.10.2-204-g6c7d91c)\r\ntested after purge previous versions, did the test 2 times (with and without root)\r\n```asm\r\n$ r2 /bin/cp\r\n -- How about a nice game of chess?\r\n[0x0000b200]> e asm.bits\r\n32\r\n[0x0000b200]> e asm.bits = 16\r\n[0x0000b200]> e asm.bits\r\n16\r\n[0x0000b200]> (visual)\r\n \r\n[0x0000b200 11% 120 /bin/cp]> ?0;f tmp;s.. @ entry0\r\n- offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF\r\n0x00000004  0101 0100 0000 0000 0000 0000 0200 2800  ..............(.\r\n0x00000014  0100 0000 00b2 0000 3400 0000 68a3 0100  ........4...h...\r\n0x00000024  0200 0005 3400 2000 0900 2800 1c00 1b00  ....4. ...(.....\r\n0x00000034  0100 0070 9894 0100 9814 0200 9814 0200  ...p............\r\n  sb 0x00000000       sl 0x00000000       fp 0x00000000       ip 0x00000000\r\n  sp 0x00000004       lr 0x00000000       pc 0x0000b20c       r0 0x00000000\r\n  r1 0x464c457f       r2 0x00000000       r3 0x00000000       r4 0x00000000\r\n  r5 0x00000000       r6 0x00000000       r7 0x00000000       r8 0x00000000\r\n  r9 0x00000000      r10 0x00000000      r11 0x00000000      r12 0x00000000\r\n r13 0x00000004      r14 0x00000000      r15 0x0000b20c      r16 0x00000000\r\n r17 0x00000000     cpsr 0x00000000\r\n            ;-- entry0:\r\n            0x0000b200      00b0a0e3       mov fp, 0\r\n            0x0000b204      00e0a0e3       mov lr, 0\r\n            0x0000b208      04109de4       pop {r1}\r\n            ;-- pc:\r\n            ;-- r15:\r\n            0x0000b20c      0d20a0e1       mov r2, sp\r\n            0x0000b210      04202de5       str r2, [sp, -4]!\r\n            0x0000b214      04002de5       str r0, [sp, -4]!\r\n            0x0000b218      10c09fe5       ldr ip, [pc, 0x10]          ; [0xb23\r\n            0x0000b21c      04c02de5       str ip, [sp, -4]!\r\n \r\nPress <enter> to return to Visual mode.    ldr ip, [pc, 0x10]          ; [0xb23\r\n:> e asm.bits\r\n32  <======= ####### this! this! #####\r\n[0x0000b200]> r2 -v;!dmesg|grep -i 'arm'\r\nradare2 0.10.3-git 11147 @ linux-arm-32 git.0.10.2-204-g6c7d91c\r\n[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00093177\r\n[    0.000000] Machine: ARM PB\r\n[0x0000b200]> date\r\nSat, 07 May 2016 08:53:48 GMT + 0\r\n[0x0000b200]>\r\n```\r\n this does not happen in the x86-32 or x86-64\r\n```asm\r\n$ r2 /bin/cp\r\n -- License server overloaded (ETOOMANYCASH)\r\n[0x0804af14]> e asm.bits\r\n32\r\n[0x0804af14]> e asm.bits = 16\r\n[804000:af14]> pd 5 @0x0804af14\r\n            ;-- entry0:\r\n            4000:af14      31ed           xor bp, bp\r\n            4000:af16      5e             pop si\r\n            4000:af17      89e1           mov cx, sp\r\n            4000:af19      83e4f0         and sp, 0xfff0\r\n            4000:af1c      50             push ax\r\n[804000:af14]> (virtual)\r\n\r\n[0x00000047 0% 185 /bin/cp]> ?0;f tmp;s.. @ ip\r\n- offset -  0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF\r\n0000:000a  0000 0000 0000 0200 0300 0100 0000 14af  ................\r\n0000:001a  0408 3400 0000 d053 0200 0000 0000 3400  ..4....S......4.\r\n0000:002a  2000 0900 2800 1b00 1a00 0600 0000 3400   ...(.........4.\r\n0000:003a  0000 3480 0408 3480 0408 2001 0000 2001  ..4...4... ... .\r\n  ip 0x00000047       ax 0x00000000       bx 0x00000101       cx 0x00000000\r\n  dx 0x00000000       sp 0x0000000a       bp 0x00000000       si 0x00000001\r\n  di 0x00000000     flags 0x00000000\r\n            ;-- ip:\r\n            0000:0047      0020           add byte [bx + si], ah\r\n            0000:0049      0100           add word [bx + si], ax\r\n            0000:004b      0005           add byte [di], al\r\n            0000:004d      0000           add byte [bx + si], al\r\n            0000:004f      0004           add byte [si], al\r\n            0000:0051      0000           add byte [bx + si], al\r\n            0000:0053      0003           add byte [bp + di], al\r\n:> e asm.bits\r\n16\r\n:>\r\n\r\n```\r\nshould be a bug."},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/218584541","html_url":"https://github.com/radare/radare2/issues/4798#issuecomment-218584541","issue_url":"https://api.github.com/repos/radare/radare2/issues/4798","id":218584541,"user":{"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},"created_at":"2016-05-11T20:44:50Z","updated_at":"2016-05-11T20:44:50Z","body":"👍"}}