{"action":"created","issue":{"url":"https://api.github.com/repos/hugsy/gef/issues/34","repository_url":"https://api.github.com/repos/hugsy/gef","labels_url":"https://api.github.com/repos/hugsy/gef/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/hugsy/gef/issues/34/comments","events_url":"https://api.github.com/repos/hugsy/gef/issues/34/events","html_url":"https://github.com/hugsy/gef/issues/34","id":159728050,"number":34,"title":"ARM Remote Debugging problem","user":{"login":"etrickel-asu","id":14295821,"avatar_url":"https://avatars.githubusercontent.com/u/14295821?v=3","gravatar_id":"","url":"https://api.github.com/users/etrickel-asu","html_url":"https://github.com/etrickel-asu","followers_url":"https://api.github.com/users/etrickel-asu/followers","following_url":"https://api.github.com/users/etrickel-asu/following{/other_user}","gists_url":"https://api.github.com/users/etrickel-asu/gists{/gist_id}","starred_url":"https://api.github.com/users/etrickel-asu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etrickel-asu/subscriptions","organizations_url":"https://api.github.com/users/etrickel-asu/orgs","repos_url":"https://api.github.com/users/etrickel-asu/repos","events_url":"https://api.github.com/users/etrickel-asu/events{/privacy}","received_events_url":"https://api.github.com/users/etrickel-asu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-10T21:34:06Z","updated_at":"2016-06-12T14:38:19Z","closed_at":null,"body":"Thanks for releasing your python script, I only started using it recently, but I find it very helpful.\r\n\r\nI have what might be a unqiue situation, but I'm using gef with android's gdb to debug a file remotely on an Android device.  Unfortunately, I couldn't get gef-remote to work the way I wanted, so I'm using a local executable for the file.  \r\n\r\nThe issue I am having is that the inspect_stack is printing the addresses but it is not printing the values in the addresses.  I looked through the code and tracked it down to the get_process_maps()\r\nBasically, it is looking for the /proc/pid/maps, but in my case it is on the remote device.  I was able to fix the issue by checking to see if the maps file exists and if not then I try to pull it down using the gdb command \"remote get\".  I'm sure there is probably a more elegant way to do this, but it is working for me.\r\n\r\n```\r\ndef get_process_maps():\r\n    sections = []\r\n    try:\r\n        pid = get_pid()\r\n        proc = __config__.get(\"gef-remote.proc_directory\")[0]\r\n        fname = '%s/%d/maps' % (proc, pid)\r\n        mapFName = \"\"\r\n        if os.path.isfile(fname) :\r\n            f = open(fname)\r\n        else :\r\n            mapFName = \"./map_%d\" % pid\r\n            gdb.execute(\"remote  get \" + fname + \" \" + mapFName, to_string=True)\r\n            f = open(mapFName)**\r\n\r\n        while True:\r\n            line = f.readline()\r\n            if len(line) == 0:\r\n                if (os.path.isfile(mapFName)) :\r\n                    os.remove(mapFName);\r\n                break\r\n        . . .\r\n```\r\nThank you again for the addon.  \r\n"},"comment":{"url":"https://api.github.com/repos/hugsy/gef/issues/comments/225438503","html_url":"https://github.com/hugsy/gef/issues/34#issuecomment-225438503","issue_url":"https://api.github.com/repos/hugsy/gef/issues/34","id":225438503,"user":{"login":"etrickel-asu","id":14295821,"avatar_url":"https://avatars.githubusercontent.com/u/14295821?v=3","gravatar_id":"","url":"https://api.github.com/users/etrickel-asu","html_url":"https://github.com/etrickel-asu","followers_url":"https://api.github.com/users/etrickel-asu/followers","following_url":"https://api.github.com/users/etrickel-asu/following{/other_user}","gists_url":"https://api.github.com/users/etrickel-asu/gists{/gist_id}","starred_url":"https://api.github.com/users/etrickel-asu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etrickel-asu/subscriptions","organizations_url":"https://api.github.com/users/etrickel-asu/orgs","repos_url":"https://api.github.com/users/etrickel-asu/repos","events_url":"https://api.github.com/users/etrickel-asu/events{/privacy}","received_events_url":"https://api.github.com/users/etrickel-asu/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T14:38:19Z","updated_at":"2016-06-12T14:38:19Z","body":"Good morning,\n\n \n\nThank you for the response. \n\n \n\nSo, I think what you are saying is that based on the way I'm compiling the\ncode, I should be using the gdb-multiarch instead of the android ndk gdb.\nI'll admit again that I'm still learning.  So, I will take a look into using\nthe gdb-multiarch because that might be useful for other things I'm working\non.  \n\n \n\nWith that said, for my current project the android ndk version of gdb is\nworking with target remote-it does identify the binary properly-it's when I\ntry using the gef-remote command that I get the architecture error.  I was\njust trying to be helpful with my post, but I completely understand that the\nwork around I posted doesn't fit into the design you have for your tool.  \n\n \n\nAgain, thank you for the quick responses, I appreciate all the hard work you\nhave put into gef and I love using your tool.  \n\n \n\n-Erik\n\n \n\n \n\nFrom: crazy rabbidz [mailto:notifications@github.com] \nSent: Saturday, June 11, 2016 3:42 PM\nTo: hugsy/gef <gef@noreply.github.com>\nCc: etrickel-asu <erik.trickel@asu.edu>; Mention\n<mention@noreply.github.com>\nSubject: Re: [hugsy/gef] ARM Remote Debugging problem (#34)\n\n \n\nThat's because gdb cannot identify your architecture.\n\n1.\tYou must use gdb-multiarch not gdb \n2.\tYou must set the correct architecture, for example set architecture\narmv5 \n\nThen only, you can use gef-remote.\n\n-\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub\n<http://t.sidekickopen54.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs3\nLyBm0N1qg0VxRs65CW63JXmj56dNRkdnLDKW02?t=https%3A%2F%2Fgithub.com%2Fhugsy%2F\ngef%2Fissues%2F34%23issuecomment-225398489&si=5648645688131584&pi=88ea6481-0\n38b-419b-a5dc-41fb8b609bce> , or mute the thread\n<http://t.sidekickopen54.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs3\nLyBm0N1qg0VxRs65CW63JXmj56dNRkdnLDKW02?t=https%3A%2F%2Fgithub.com%2Fnotifica\ntions%2Funsubscribe%2FANojDfL-wD5FiujEa3Poi1UcymbeYRxlks5qKzm7gaJpZM4IzWXd&s\ni=5648645688131584&pi=88ea6481-038b-419b-a5dc-41fb8b609bce> .\n<https://github.com/notifications/beacon/ANojDfQWuAg1PKp7mVCJt0Jm4srQkESWks5\nqKzm7gaJpZM4IzWXd.gif> \n\n \n<http://t.sidekickopen54.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v5\ndlN8VRbxVx3LqXNxW7fKcTq1pctGFW6xGyGV1k1H6H0?si=5648645688131584&pi=88ea6481-\n038b-419b-a5dc-41fb8b609bce> \n\n"}}
{"actor":{"display_login":"etrickel-asu"}}