{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5175","repository_url":"https://api.github.com/repos/RIOT-OS/RIOT","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5175/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5175/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5175/events","html_url":"https://github.com/RIOT-OS/RIOT/pull/5175","id":143474689,"number":5175,"title":"cpu: cortex_common: Add entry point in ldscript to tell gdb where to start","user":{"login":"antoinefaure","id":5825060,"avatar_url":"https://avatars.githubusercontent.com/u/5825060?v=3","gravatar_id":"","url":"https://api.github.com/users/antoinefaure","html_url":"https://github.com/antoinefaure","followers_url":"https://api.github.com/users/antoinefaure/followers","following_url":"https://api.github.com/users/antoinefaure/following{/other_user}","gists_url":"https://api.github.com/users/antoinefaure/gists{/gist_id}","starred_url":"https://api.github.com/users/antoinefaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoinefaure/subscriptions","organizations_url":"https://api.github.com/users/antoinefaure/orgs","repos_url":"https://api.github.com/users/antoinefaure/repos","events_url":"https://api.github.com/users/antoinefaure/events{/privacy}","received_events_url":"https://api.github.com/users/antoinefaure/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/arm","name":"arm","color":"dddddd"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/enhancement","name":"enhancement","color":"f17070"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/Ready%20for%20CI%20build","name":"Ready for CI build","color":"bfdadc"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/tools","name":"tools","color":"ff6000"}],"state":"open","locked":false,"assignee":{"login":"daniel-k","id":224128,"avatar_url":"https://avatars.githubusercontent.com/u/224128?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-k","html_url":"https://github.com/daniel-k","followers_url":"https://api.github.com/users/daniel-k/followers","following_url":"https://api.github.com/users/daniel-k/following{/other_user}","gists_url":"https://api.github.com/users/daniel-k/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-k/subscriptions","organizations_url":"https://api.github.com/users/daniel-k/orgs","repos_url":"https://api.github.com/users/daniel-k/repos","events_url":"https://api.github.com/users/daniel-k/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-k/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/14","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%202016.07","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/14/labels","id":1657251,"number":14,"title":"Release 2016.07","description":"","creator":{"login":"authmillenon","id":675644,"avatar_url":"https://avatars.githubusercontent.com/u/675644?v=3","gravatar_id":"","url":"https://api.github.com/users/authmillenon","html_url":"https://github.com/authmillenon","followers_url":"https://api.github.com/users/authmillenon/followers","following_url":"https://api.github.com/users/authmillenon/following{/other_user}","gists_url":"https://api.github.com/users/authmillenon/gists{/gist_id}","starred_url":"https://api.github.com/users/authmillenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authmillenon/subscriptions","organizations_url":"https://api.github.com/users/authmillenon/orgs","repos_url":"https://api.github.com/users/authmillenon/repos","events_url":"https://api.github.com/users/authmillenon/events{/privacy}","received_events_url":"https://api.github.com/users/authmillenon/received_events","type":"User","site_admin":false},"open_issues":132,"closed_issues":1,"state":"open","created_at":"2016-03-21T13:28:08Z","updated_at":"2016-03-30T09:41:30Z","due_on":"2016-07-14T22:00:00Z","closed_at":null},"comments":11,"created_at":"2016-03-25T10:38:53Z","updated_at":"2016-03-30T10:11:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5175","html_url":"https://github.com/RIOT-OS/RIOT/pull/5175","diff_url":"https://github.com/RIOT-OS/RIOT/pull/5175.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/5175.patch"},"body":"When using gdb + openocd to load and debug a firmware, gdb sometimes did not know where to start the program as there are no ENTRY point in the ldscripts. This leads to random code execution (only when using openocd + gdb load).\r\n\r\nWith this ENTRY gdb can now understand where exactly to start. This has no effect on the program itself. \r\n\r\nThe same procedure should probably also be added to other architectures, but I don't have a lot of hardware to test the result. "},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/203364942","html_url":"https://github.com/RIOT-OS/RIOT/pull/5175#issuecomment-203364942","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5175","id":203364942,"user":{"login":"antoinefaure","id":5825060,"avatar_url":"https://avatars.githubusercontent.com/u/5825060?v=3","gravatar_id":"","url":"https://api.github.com/users/antoinefaure","html_url":"https://github.com/antoinefaure","followers_url":"https://api.github.com/users/antoinefaure/followers","following_url":"https://api.github.com/users/antoinefaure/following{/other_user}","gists_url":"https://api.github.com/users/antoinefaure/gists{/gist_id}","starred_url":"https://api.github.com/users/antoinefaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoinefaure/subscriptions","organizations_url":"https://api.github.com/users/antoinefaure/orgs","repos_url":"https://api.github.com/users/antoinefaure/repos","events_url":"https://api.github.com/users/antoinefaure/events{/privacy}","received_events_url":"https://api.github.com/users/antoinefaure/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T10:11:04Z","updated_at":"2016-03-30T10:11:04Z","body":"@gebart Even without `mon reset halt` the CPU is paused after the load. But maybe somehow it has an effect on the CP, I don't know. Anyway, when I use the commands stated above, gdb will force the CP to take an incorrect value and thus to proceed to random code executions. "}}