CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    2

    Unhappy Urgent C debugging with gdb

    Hi,

    It's been while in touch with C program debugging. I wrote sample program and trying to debug with gdb. I am having problem to go step by step. The program works fine. when i say step, it is executing whole function. Also when i say print specific parameter value, it say's "No symbol "i" in current context". Here is the complile option that i have used to compile it and debug it.

    gcc -g test.c -o test
    gcc -g -Wall -o test test.c
    gcc -Wall -O -g -o test test.c
    gcc -Wall -O -g test.c

    Any help would be appreciate.

    Thanks in advance,
    Srini

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: Urgent C debugging with gdb

    I'd be interested to know why you think that any of the .NET groups (c#/C++.NET) can help you with this.

    Anyway it's pretty obvious you haven't declared the variable 'i' somewhere in your test.c file.

    I'm sure one of the moderators will pick up on this sooner rather than later.

    And cross posting like this is banned here.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  3. #3
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Urgent C debugging with gdb

    [ Moved Thread ]

    Please do not cross post your threads. Thanks.
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured