#794558 gdb in eclipse terminates after entering main in c++ program

Package:
gdb
Source:
gdb
Description:
GNU Debugger
Submitter:
developer
Date:
2015-08-04 12:00:05 UTC
Severity:
normal
#794558#5
Date:
2015-08-04 11:56:32 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
    Debugging simple C++ program; first lines in main() were:
        int arr[] = { 100, 110, 120, 130 };                     //-- Line 1.
        vector<int> v(arr, arr + sizeof(arr) / sizeof(int));    //-- Line 2.
        cout << "v<int> before insert: ";                       //-- Line 3.
    as you can see, noting unusual;

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
        - entered debugging mode: pressed "Debug" button
        - pressed "bug" icon to start program in debug mode
        - debuger stoped at first line in main() - int arr[] = ...
        - pressed F6 to go to second line

   * What was the outcome of this action?
        - debuger terminated; in the "Debug" window, the only message was:
<terminated, exit value:-1>gdb
   * What outcome did you expect instead?
        - the program had to proceed to Line 2, Line 3 and so on

        BTW, This Debian-8 works under VMWare-7;

*** End of the template - remove these template lines ***