{"action":"created","issue":{"url":"https://api.github.com/repos/WebFreak001/code-debug/issues/110","repository_url":"https://api.github.com/repos/WebFreak001/code-debug","labels_url":"https://api.github.com/repos/WebFreak001/code-debug/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/WebFreak001/code-debug/issues/110/comments","events_url":"https://api.github.com/repos/WebFreak001/code-debug/issues/110/events","html_url":"https://github.com/WebFreak001/code-debug/issues/110","id":235317895,"number":110,"title":"Local variable display and single steps on ARM target fail","user":{"login":"FuelPay","id":29379458,"avatar_url":"https://avatars1.githubusercontent.com/u/29379458?v=3","gravatar_id":"","url":"https://api.github.com/users/FuelPay","html_url":"https://github.com/FuelPay","followers_url":"https://api.github.com/users/FuelPay/followers","following_url":"https://api.github.com/users/FuelPay/following{/other_user}","gists_url":"https://api.github.com/users/FuelPay/gists{/gist_id}","starred_url":"https://api.github.com/users/FuelPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FuelPay/subscriptions","organizations_url":"https://api.github.com/users/FuelPay/orgs","repos_url":"https://api.github.com/users/FuelPay/repos","events_url":"https://api.github.com/users/FuelPay/events{/privacy}","received_events_url":"https://api.github.com/users/FuelPay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-12T18:10:04Z","updated_at":"2017-06-13T20:19:45Z","closed_at":null,"body":"Using WF Native extension, simple program builds, deploys.   Starting gdbserver on ARM target, then F5 connects, and stops at Main().   Local variables in main() thread display with no problem, single step works also.   The trouble is when stopping at a break point in a child thread (hello.c:54, enter a char at /dev/ttyS0),  no local variables are displayed, F10 results in following message: Could not step over: Cannot find bounds of current function (from exec-next).  Shift F5 does break debugging, kills inferior processes.\r\n\r\nUsing gdb at the command line, works with no problem, breaking at the same point displays locals, single step works OK.  Maybe I have a configuration problem.  Source folder attached:\r\n[hello.zip](https://github.com/WebFreak001/code-debug/files/1069084/hello.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/WebFreak001/code-debug/issues/comments/308236232","html_url":"https://github.com/WebFreak001/code-debug/issues/110#issuecomment-308236232","issue_url":"https://api.github.com/repos/WebFreak001/code-debug/issues/110","id":308236232,"user":{"login":"FuelPay","id":29379458,"avatar_url":"https://avatars1.githubusercontent.com/u/29379458?v=3","gravatar_id":"","url":"https://api.github.com/users/FuelPay","html_url":"https://github.com/FuelPay","followers_url":"https://api.github.com/users/FuelPay/followers","following_url":"https://api.github.com/users/FuelPay/following{/other_user}","gists_url":"https://api.github.com/users/FuelPay/gists{/gist_id}","starred_url":"https://api.github.com/users/FuelPay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FuelPay/subscriptions","organizations_url":"https://api.github.com/users/FuelPay/orgs","repos_url":"https://api.github.com/users/FuelPay/repos","events_url":"https://api.github.com/users/FuelPay/events{/privacy}","received_events_url":"https://api.github.com/users/FuelPay/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T20:19:44Z","updated_at":"2017-06-13T20:19:44Z","body":"Command line details follow:\r\n\r\nSo at telnet to ARM target processor – enter “gdbserver 192.168.1.40:10000 hello A BB CCC DDD” – starts hello under gdbserver with 4 command line arguments) – please see telnet input/output here:\r\n\r\nam335x-evm login: root\r\nroot@am335x-evm:~# ./gs\r\nProcess hello created; pid = 881\r\nListening on port 10000\r\n\r\n\r\nNow at Ubuntu desktop command line, in folder ~/hello enter :\r\n‘arm-linux-gnueabihf-gdb hello’\r\nthen enter lower case L, then enter a few times to show source from hello.c\r\nthen enter b 54 to set breakpoint at hello.c:54\r\nthen tr (target remote 192.168.1.14:10000) as defined in .gdbinit – gdbserver reports remote debugging from host IP\r\nthen c to run – hello runs, gdbserver displays printf text output\r\nhello opens /dev/ttyS0, then after typing a few chars at /dev/ttyS0, press enter,  gdb session at Ubuntu desktop breaks at line 54, shows the stack frame, p n shows value of n, p buffer shows contents of buffer\r\nentering n takes a single step, entering c continues, entering q at /dev/ttyS0 causes break at 54, continuing causes child thread to signal main thread, which then exits from hello\r\nat that point, ok to reconnect to remote target, run it again, or exit gdb\r\n\r\nARM target Linux: Linux am335x-evm 4.4.41-gf9f6f0db2d #1 PREEMPT Wed Mar 29 17:37:15 EDT 2017 armv7l GNU/Linux\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n****************\r\nAnthony Drake\r\nM: 1+512 818 7377\r\n\r\nFrom: Jan Jurzitza [mailto:notifications@github.com]\r\nSent: Tuesday, June 13, 2017 12:03 PM\r\nTo: WebFreak001/code-debug <code-debug@noreply.github.com>\r\nCc: Drake, Anthony <anthony.drake@wayne.com>; Author <author@noreply.github.com>\r\nSubject: Re: [WebFreak001/code-debug] Local variable display and single steps on ARM target fail (#110)\r\n\r\n\r\nand what is the exact gdb command you use to run it in the console? Can you also enable \"showDevDebugOutput\" and \"printCalls\" in your config and send me the debug log when it breaks where it should show the variables\r\n\r\n—\r\nYou are receiving this because you authored the thread.\r\nReply to this email directly, view it on GitHub<https://github.com/WebFreak001/code-debug/issues/110#issuecomment-308182729>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AcBLgkAt9eHeDuxGFtED5WwpIKmUi4Kyks5sDsCzgaJpZM4N3exT>.\r\n"}}
{"actor":{"display_login":"FuelPay"}}