Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

How to debug linux application?

I can debug the applications of altera NiosII project. But I donnot know how to debug linux application. Can someone tell me how to debug linux applications?

Thanks!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The basic steps are:

    (1) Build your app using -O0 and -g compiler flags

    (2) Ensure that you build the <app>.gdb target

    (3) upload <app>.exe to your development board

    (4) run the following command from within Nios II Linux

    # debug <app>

    (5) create and run a Nios II Linux application debug configuration from within the Nios II IDE

    For more information, please see the Reference Guide. If you are still experiencing problems, please feel free to contact me.