This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

GCC/GDB questions

I'm evaluating the ARM DS-5 and Linaro toolchains and the FVP model simulators. I'm starting with the DS-5 Community Edition and the Foundation Profile simulator before advancing to the commercial tools. So I have a few questions:

  • The hello.c example included with the Foundation Profile simulator download package includes a compiled executable that runs on the Foundation Profile simulator. But the included Makefile is based on the commercial ARM compiler and not the Linaro version of GCC included in DS-5 Community Edition. Could you provide a GCC command-line example for compiling and linking hello.c for running on the (v8.1a) simulator?
  • The DS-5 Community Edition includes an Eclipse-based IDE and a compiler toolchain based on GCC 4.8.3. Yet http://www.arm.com/products/tools/models/fast-models/foundation-model.php suggests that the Foundation Platform simulator model uses a GDB connection while the FVP simulator model provides "non-intrusive debug support with DS-5". Can I debug code running on a Foundation Platform simulator model using the DS-5 Community Edition IDE or am I limited to GDB?
  • Is there a simple gdbserver setup example?
Parents
  • dbsears wrote:

    Can I debug code running on a Foundation Platform simulator model using the DS-5 Community Edition IDE or am I limited to GDB?

    The Foundation Platform does not include the debug API required to attach to DS-5.  The only supported debug option is the gdbserver option.


    Are you specifically looking at ARMv8 or would an ARMv7 option suffice?   If the latter, then you can download an evaluation copy of an FVP that does support use with DS-5.  This requires registering with the ARM website and then downloading the package.  You will be supplied with a 30-day license to run the simulator if you follow the process.

    I'll leave it to my colleagues in support to answer the questions on makefiles and gdbserver setup.

Reply
  • dbsears wrote:

    Can I debug code running on a Foundation Platform simulator model using the DS-5 Community Edition IDE or am I limited to GDB?

    The Foundation Platform does not include the debug API required to attach to DS-5.  The only supported debug option is the gdbserver option.


    Are you specifically looking at ARMv8 or would an ARMv7 option suffice?   If the latter, then you can download an evaluation copy of an FVP that does support use with DS-5.  This requires registering with the ARM website and then downloading the package.  You will be supplied with a 30-day license to run the simulator if you follow the process.

    I'll leave it to my colleagues in support to answer the questions on makefiles and gdbserver setup.

Children
No data