gpt4 book ai didi

c - 在 gdb-multiarch 中指定架构

转载 作者:行者123 更新时间:2023-12-01 12:42:35 27 4
gpt4 key购买 nike

如果我使用任何 arm 编译器(例如 arm-none-eabi-gcc )编译 C 程序,然后调用 gdb-multiarch使用二进制作为第二个参数,它将正确确定机器类型,我可以调试我的远程应用程序。

但是,如果我调用 gdb-multiarch就其本身而言,它将假定我的机器类型(x86_64)并尝试使用错误的架构调试远程目标..

如何在 armv5te 中指定机器类型/架构(例如 gdb-multiarch ) ?

最佳答案

The fine manual says :

set architecture arch

This command sets the current target architecture to arch. The value of arch can be "auto", in addition to one of the supported architectures.



对我来说,这听起来确实像你所追求的。

关于c - 在 gdb-multiarch 中指定架构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55684272/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com