Forum Discussion

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

Debugging app on linux

Are tools like valgrind and strace available for Nios II uClinux 2.6.11 ? If available please fwd link.

3 Replies

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

    --- Quote Start ---

    originally posted by shakthi@Jun 20 2006, 02:04 PM

    are tools like valgrind and strace available for nios ii uclinux 2.6.11 ? if available please fwd link.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16267)

    --- quote end ---

    --- Quote End ---

    Strace isn&#39;t ported yet, but it is possible to add nios2 in uClinux-dist-test/user/strace .

    Gdb in IDE can support uclinux apps.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Debug utility provided for debugging app on uClinux with gdb make the linux either hang or crash. I am working on a very time sensitive application in which I would like to find out if there are any memory leaks. How can I do that and also would like to do some back tracing. Can U suggest some way of doing this using ptrace system call, if there are no utilities avaliable.

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

    --- Quote Start ---

    originally posted by shakthi@Jun 21 2006, 03:13 PM

    debug utility provided for debugging app on uclinux with gdb make the linux either hang or crash. i am working on a very time sensitive application in which i would like to find out if there are any memory leaks. how can i do that and also would like to do some back tracing. can u suggest some way of doing this using ptrace system call, if there are no utilities avaliable.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16306)

    --- quote end ---

    --- Quote End ---

    There are ptrace() support in nios2 kernel,

    arch/nios2nommu/kernel/ptrace.c

    But I never use it, and don&#39;t know if it works properly. (let know if you try it)