使用Kdbg调试汇编代码 [英] Debug assembly code using Kdbg

查看:300
本文介绍了使用Kdbg调试汇编代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.c C源代码和一个.S汇编源代码的项目。一旦编译和链接,是否有任何方法使用Kdbg调试.S代码?我从.c文件中调用了一个.S函数,但没有在Kdbg中加载代码。 解决方案

源文件,例如:.filesourceasm.s。 Kdbg会按照预期使用它。


I have a project with one .c C source code and one .S assembly source code. Once compiled and linked, is there any way to debug .S code using Kdbg? I am calling one .S function from .c file but no code loads in Kdbg.

解决方案

Add a .file directive in your source, like: .file "sourceasm.s". Kdbg will then use it as expected.

这篇关于使用Kdbg调试汇编代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆