This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to set argv in debugging Sitara AM3359 SK board?

Hi,

I have a Sitara SK board, TFTP boot and NFS at the host Ubuntu PC. I want to debug the following C code, but I don't find a place to set argv needed.

Could you tell me where to put argv for remote debugging at the target board?

Thanks,

int main(int, char **argv)
{
    // gets file to read and builds map to support queries
    TextQuery file = build_textfile(argv[1]);

  • Hi Jeff,

    Can you share some more details?

    As I am sure you're aware argv[1] is the first parameter after the name of the compiled C program. So can you please share a little more details about your query:
    How do you call your C application? In linux user space, or is it called within another program? Or is it a compiled within linux kernel?
    It may also be helpful if you can share the code of your application?

    Best Regards,
    Yordan
  • Find the solution at debug configure file. Thanks,