您如何使用“目标远程"在 gdb 中重新开始运行程序? [英] How do you start running the program over again in gdb with 'target remote'?
本文介绍了您如何使用“目标远程"在 gdb 中重新开始运行程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当您在同一台计算机上对可执行文件执行常规 gdb 会话时,您可以发出运行命令,它会重新启动程序.
When you're doing a usual gdb session on an executable file on the same computer, you can give the run command and it will start the program over again.
当您在嵌入式系统上运行 gdb 时,如使用命令 target localhost:3210
,如何在不退出并重新启动 gdb 会话的情况下重新启动程序?
When you're running gdb on an embedded system, as with the command target localhost:3210
, how do you start the program over again without quitting and restarting your gdb session?
推荐答案
您正在寻找 gdbserver 的多进程模式 和 设置远程执行文件文件名
You are looking for Multi-Process Mode for gdbserver and set remote exec-file filename
这篇关于您如何使用“目标远程"在 gdb 中重新开始运行程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文