{"action":"opened","issue":{"url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1767","labels_url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1767/labels{/name}","comments_url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1767/comments","events_url":"https://api.github.com/repos/DynamoRIO/dynamorio/issues/1767/events","html_url":"https://github.com/DynamoRIO/dynamorio/issues/1767","id":101780059,"number":1767,"title":"libdynamorio.so-gdb.py incompatible with python3","user":{"login":"toshipiazza","id":6254422,"avatar_url":"https://avatars.githubusercontent.com/u/6254422?v=3","gravatar_id":"","url":"https://api.github.com/users/toshipiazza","html_url":"https://github.com/toshipiazza","followers_url":"https://api.github.com/users/toshipiazza/followers","following_url":"https://api.github.com/users/toshipiazza/following{/other_user}","gists_url":"https://api.github.com/users/toshipiazza/gists{/gist_id}","starred_url":"https://api.github.com/users/toshipiazza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshipiazza/subscriptions","organizations_url":"https://api.github.com/users/toshipiazza/orgs","repos_url":"https://api.github.com/users/toshipiazza/repos","events_url":"https://api.github.com/users/toshipiazza/events{/privacy}","received_events_url":"https://api.github.com/users/toshipiazza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DynamoRIO/dynamorio/labels/Component-Tools","name":"Component-Tools","color":"FFFFFF"}],"state":"open","locked":false,"assignee":{"login":"toshipiazza","id":6254422,"avatar_url":"https://avatars.githubusercontent.com/u/6254422?v=3","gravatar_id":"","url":"https://api.github.com/users/toshipiazza","html_url":"https://github.com/toshipiazza","followers_url":"https://api.github.com/users/toshipiazza/followers","following_url":"https://api.github.com/users/toshipiazza/following{/other_user}","gists_url":"https://api.github.com/users/toshipiazza/gists{/gist_id}","starred_url":"https://api.github.com/users/toshipiazza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshipiazza/subscriptions","organizations_url":"https://api.github.com/users/toshipiazza/orgs","repos_url":"https://api.github.com/users/toshipiazza/repos","events_url":"https://api.github.com/users/toshipiazza/events{/privacy}","received_events_url":"https://api.github.com/users/toshipiazza/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-08-19T00:32:20Z","updated_at":"2015-08-19T00:32:20Z","closed_at":null,"body":"The libdymamorio.so-gdb.py script which allows dynamorio clients to be run under gdb breaks python3 syntax. As a result any gdb versions compiled with python3 support rather than python2 support will fail. These issues are mostly print statement vs function problems which could easily be remedied by using the ```__future__``` module.\r\n\r\n```\r\n$ gdb --args ./drrun -- ./foo.out 2>&1 | tee foo.txt\r\nReading symbols from ./drrun...Reading symbols from /home/piazzt/Build/dynamorio/build/bin64/drrun.debug...done.\r\ndone.\r\ngdb$ set disable-randomization off\r\ngdb$ r\r\nStarting program: /home/piazzt/Build/dynamorio/build/bin64/drrun -- ./foo.out\r\nWARNING: To successfully launch DynamoRIO from gdb, be sure to run 'set disable-randomization off' first.\r\nprocess 26804 is executing new program: /home/piazzt/Build/dynamorio/build/lib64/release/libdynamorio.so.5.0\r\n  File \"/home/piazzt/Build/dynamorio/build/lib64/release/libdynamorio.so.5.0-gdb.py\", line 8\r\n    print 'Loading gdb scripts for debugging DynamoRIO...'\r\n                                                         ^\r\nSyntaxError: invalid syntax\r\nhello world\r\n[Inferior 1 (process 26804) exited normally]\r\n```"}}