Attach to Linux exe not working

Sysprogs forums Forums VisualGDB Attach to Linux exe not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21227
    b.timofte
    Participant

    I make a linux Executable with

    #include <iostream>

    using namespace std;

    int main(int argc, char *argv[])
    {
    char sz[] = “Hello, World!”;    //Hover mouse over “sz” while debugging to see its contents
    cout << sz << endl;    //<================= Put a breakpoint here
    int a1 = 0;
    while(1)
    {
    a1++;
    }
    return 0;
    }

     

    Then I click debug attach to project , i select VisualGDB and the IP adress , i select the linux process from the list and then i get the error :


    gdb –interpreter mi –args “/tmp/VisualGDB/c/VisualGdb/LinuxProject1/LinuxProject1/Debug/LinuxProject1″
    && export MANOPT=”–nh” && export LANG=”en_US.UTF-8″ && “gdb” –interpreter mi –args “/tmp/VisualGDB/c/VisualGdb/LinuxProject1/LinuxProject1/Debug/LinuxProject1″‘ as root on xxx.yyy
    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.

    • This topic was modified 5 years, 10 months ago by b.timofte.
    #21231
    support
    Keymaster

    Hi,

    This doesn’t look like any error that should interfere with attaching. Please check the gdb log for other errors.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.