<terminated, exit value: -1>gdb [message #807605] |
Sun, 26 February 2012 19:18 |
|
I have a rather complex OpenGL, fltk, gdal, multi threaded c++ app. Which crashes gdb when I break in the OpenGL thread and then continue. I can switch to command line gdb and debug without problems but that is so painfully slow in comparison to eclipse.
Do I need to get a simple app that had a similar problem to proceed from here. Or does anyone have any good advice...
Angus
|
|
|
|
|
|
Re: <terminated, exit value: -1>gdb [message #810712 is a reply to message #808189] |
Thu, 01 March 2012 13:13 |
|
i attempted what you said, but there are dozens of gdb commands to cut & paste, and i could not get the multi-line ones to execute properly.
i will keep trying.
also i am not clear on how eclipse sets a breakpoint while the app is running, does it break execution and continue automatically?
|
|
|
Re: <terminated, exit value: -1>gdb [message #810723 is a reply to message #810712] |
Thu, 01 March 2012 13:29 |
|
i got a bit further, if i cut and paste the multi-line cmds into gedit and edit it back to a single line cmd it works, but when i get to "13-exec-run" my app terminates saying /dev/pts/1: No such file or directory - the previous gdb cmd was "12-inferior-tty-set /dev/pts/1"
interestingly, when eclipse loses contact with my app - there is a long pause - then after the terminated -1 message in the Debug/call stack pane, the app is left running, then if i try and load a file or interact with the app in any way it will shut down.
|
|
|
|
|
Re: <terminated, exit value: -1>gdb [message #843315 is a reply to message #810730] |
Fri, 13 April 2012 00:10 |
|
Here is another fact on this issue:
I can set breakpoints anywhere in my code EXCEPT inside the ::draw() method.
This method is called from a base class in the fltk-1.3.0 library, the whole class inherits from an Fl_Gl_Window.
eclipse or gdb cannot display the call stack before the ::draw(), and any attempt to step or continue results in gdb terminating.
[Updated on: Fri, 13 April 2012 00:59] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03833 seconds