Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图用 KDBG 调试我的 AT&T 汇编代码,并为 stdin 重定向输入,但这不起作用。
kdbg program1 < mydata.txt
也试过
cat mydata.txt | kdbg program1
有什么建议吗?
选择Execution->Arguments,然后在Run program1 with these arguments框中输入以下内容:
< mydata.txt
我还强烈建议您在该对话框中切换到工作目录并填写目录。这可确保程序在正确的目录中运行并实际找到mydata.txt.
mydata.txt