Subject: gdb in eclipse terminates after entering main in c++ program
Date: Tue, 04 Aug 2015 07:56:32 -0400
Package: gdb
Version: 7.7.1+dfsg-5
Severity: normal
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 ***
-- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gdb depends on:
ii libc6 2.19-18
ii libexpat1 2.1.0-6+deb8u1
ii liblzma5 5.1.1alpha+20120614-2+b3
ii libncurses5 5.9+20140913-1+b1
ii libpython2.7 2.7.9-2
ii libreadline6 6.3-8+b3
ii libtinfo5 5.9+20140913-1+b1
ii zlib1g 1:1.2.8.dfsg-2+b1
Versions of packages gdb recommends:
ii gdbserver 7.7.1+dfsg-5
ii libc6-dbg [libc-dbg] 2.19-18
Versions of packages gdb suggests:
pn gdb-doc <none>
-- no debconf information