用于Linux开发的Visual C ++ - 没有GCC的目标 [英] Visual C++ for Linux Development - Target without GCC

查看:123
本文介绍了用于Linux开发的Visual C ++ - 没有GCC的目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,

Hello Everyone,

我正在研究一个在带有Debian Linux操作系统的ARM微处理器上运行的嵌入式C ++项目。我们希望使用Visual Studio 2017在目标硬件上进行远程调试。目前,团队在运行Debian
的VM中编译源代码,然后将应用程序闪存到目标硬件。遗憾的是,我们无法在目标硬件上使用编译器和/或工具链。没有足够的闪光灯。我们已启用SSH并且正在处理目标以及目标
硬件上安装的gdbserver。

I'm working on a embedded C++ project running on ARM microprocessor with a Debian Linux OS. We would like to use Visual Studio 2017 to remotely debug on the target hardware. Currently the team compiles the source code in a VM running Debian and then flashes the application to the target hardware. Unfortunately we can't fit the compiler and/or tool chain on the target hardware. There just isn't enough flash. We have SSH enabled and working on the target as well as gdbserver installed on the target hardware.

有没有办法通过运行的Visual Studio调试应用程序目标硬件上没有安装编译器?我们可以使用VM中编译器生成的符号文件,并且不需要在目标硬件上安装编译器
吗?

我是成功运行了我在Raspberry Pi上使用Visual Studio 2017编写,编译和调试C ++代码的示例。它似乎运行得很好,让我们可以访问我们在Visual Studio中所依赖的所有调试工具。我没有在任何描述没有编译器的目标上调试的论坛或博客上来
。 

I've successfully run through examples where I write, compile and debug C++ code using Visual Studio 2017 on a Raspberry Pi. It seems to run great and gives us access to all the debug tools we've come to count on in Visual Studio. I haven't come across any forums or blogs which describe debugging on a target without a compiler. 

任何人都可以提供的任何信息都指向我正确的方向非常感谢。

Any information anyone can provide to point me in the right direction would be greatly appreciated.

谢谢,

Chris Jablonski

Chris Jablonski

推荐答案

感谢您在此处发帖。

>>有没有办法通过Visual调试应用程序Studio在没有安装编译器的目标硬件上运行?我们可以使用VM中编译器生成的符号文件,并且不需要在目标硬件上安装编译器
吗?

至于我知道,您可以使用安装了SSH,gdbserver和
编译器的任何Linux发行版。您将在Visual Studio中使用源文件,但它们将是在远程Linux机器上编译。  

As far as I know, you could use any Linux distribution that has SSH, gdbserver, and a compiler installed. You’ll be working with your source files in Visual Studio, but they will be compiled on the remote Linux machine.  

有关在visual studio中使用c ++进行Linux开发的更多信息,请参阅下面的文档。

For more information about Linux development with c++ in visual studio, please refer to this document below.

https://blogs.msdn.microsoft.com/vcblog/2017/ 04/11 / linux-development-with-c-in-visual-studio /

最好的问候,

Baron Bi


这篇关于用于Linux开发的Visual C ++ - 没有GCC的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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