{"action":"created","issue":{"url":"https://api.github.com/repos/NationalSecurityAgency/ghidra/issues/1177","repository_url":"https://api.github.com/repos/NationalSecurityAgency/ghidra","labels_url":"https://api.github.com/repos/NationalSecurityAgency/ghidra/issues/1177/labels{/name}","comments_url":"https://api.github.com/repos/NationalSecurityAgency/ghidra/issues/1177/comments","events_url":"https://api.github.com/repos/NationalSecurityAgency/ghidra/issues/1177/events","html_url":"https://github.com/NationalSecurityAgency/ghidra/issues/1177","id":512434364,"node_id":"MDU6SXNzdWU1MTI0MzQzNjQ=","number":1177,"title":"Call-fixup for function gets a data from the code that follows right after a call.","user":{"login":"beketata","id":7413903,"node_id":"MDQ6VXNlcjc0MTM5MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/7413903?v=4","gravatar_id":"","url":"https://api.github.com/users/beketata","html_url":"https://github.com/beketata","followers_url":"https://api.github.com/users/beketata/followers","following_url":"https://api.github.com/users/beketata/following{/other_user}","gists_url":"https://api.github.com/users/beketata/gists{/gist_id}","starred_url":"https://api.github.com/users/beketata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beketata/subscriptions","organizations_url":"https://api.github.com/users/beketata/orgs","repos_url":"https://api.github.com/users/beketata/repos","events_url":"https://api.github.com/users/beketata/events{/privacy}","received_events_url":"https://api.github.com/users/beketata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2019-10-25T10:25:48Z","updated_at":"2019-10-28T14:17:52Z","closed_at":null,"author_association":"NONE","body":"My question is regarding to the closed issue #484 \r\n\r\nI am working on binary file for 8051 CPU compiled by Keil. There is one of library functions ?C?LSTKXDATA which gets dword data from the code follows right after a call.\r\n[lab313ru noticed](https://github.com/NationalSecurityAgency/ghidra/issues/484#issuecomment-537386789) that \"They've fixed it in [ca44ae9](https://github.com/NationalSecurityAgency/ghidra/commit/ca44ae9a5970dfe6fa39d43f562c124ddeca6bd4).\" But in this (latest?) build: ghidra_9.1-BETA_DEV_20190923 it's not fixed.\r\n\r\n![1](https://user-images.githubusercontent.com/7413903/67555278-ca8a5680-f732-11e9-8043-d7ba2adc8b59.jpg)\r\n\r\n![2](https://user-images.githubusercontent.com/7413903/67555304-d413be80-f732-11e9-9e95-493f47b10c7c.jpg)\r\n\r\nAs [emtreere suggests](https://github.com/NationalSecurityAgency/ghidra/issues/484#issuecomment-486229223) \"One possibilty is to inline the called function, which should cause flow to the correct location.\"  Unfortunately it's also doesn't help due to **WARNING: Could not inline here**.\r\n\r\nThe next suggestion from emteere is \"The alternative is to create a general call-fixup that is added to the .cspec file to describe the implicit side-effects that happen for the particular call.\"\r\nCould someone kindly provide me with an example of this call-fixup ? Because the [SLEIGH Help](https://ghidra.re/courses/languages/html/sleigh.html) do not give a single example and .cspec files in the folder Ghidra\\Ghidra\\Processors\\ do not contains anything similar.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NationalSecurityAgency/ghidra/issues/comments/546967007","html_url":"https://github.com/NationalSecurityAgency/ghidra/issues/1177#issuecomment-546967007","issue_url":"https://api.github.com/repos/NationalSecurityAgency/ghidra/issues/1177","id":546967007,"node_id":"MDEyOklzc3VlQ29tbWVudDU0Njk2NzAwNw==","user":{"login":"beketata","id":7413903,"node_id":"MDQ6VXNlcjc0MTM5MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/7413903?v=4","gravatar_id":"","url":"https://api.github.com/users/beketata","html_url":"https://github.com/beketata","followers_url":"https://api.github.com/users/beketata/followers","following_url":"https://api.github.com/users/beketata/following{/other_user}","gists_url":"https://api.github.com/users/beketata/gists{/gist_id}","starred_url":"https://api.github.com/users/beketata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beketata/subscriptions","organizations_url":"https://api.github.com/users/beketata/orgs","repos_url":"https://api.github.com/users/beketata/repos","events_url":"https://api.github.com/users/beketata/events{/privacy}","received_events_url":"https://api.github.com/users/beketata/received_events","type":"User","site_admin":false},"created_at":"2019-10-28T14:17:52Z","updated_at":"2019-10-28T14:17:52Z","author_association":"NONE","body":"Not as I want, but as it should be :-)"}}
{"actor":{"display_login":"beketata"}}