fix bug in code_native when debug info is missing. fixes #4692