Marco,
I’ve taken a look at your code. Unfortunately the debugger does not support displaying STL containers (either natively or using python in this way). Although I couldn’t repeat the exact issue, I’d say the segmentation fault is because of the use of the python pretty printer. This would be a nice feature to have, but the way the debugger works currently with it’s own data types precludes this.
Regards, Greg Hi to all, I'm new on the list and I'm a PTP newbie!! I would like to debug my parallel c++ code in PTP. The matter is: STL Container!! I hope someone can help me, I really don't know what to do. I'm able to inspect STL Container in serial codes using eclipse and gdb. But I'm going crazy with them in parallel. My parallel debug configuration: Open MPI-Generic-Interactive Connection Type: local (?????) Number of processes: 1 Debugger: SDM Debugger backend: gdb-mi Use built-in SDM .... All the rest is set at default values.
.gdbinit looks like python import sys sys.path.insert(0, '/home/marco/gdb_printers/python') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end
If I run the parallel debug session everything works fine, until I select Variables view and stl container are in it. If so, things get ruined: - stl container have no value - not all stl container are in Variables view - and waiting for some seconds you get a python error like this and a Segmentation Fault stopping mpirun, like this: close failed in file object destructor: sys.excepthook is missing lost sys.stderr -------------------------------------------------------------------------- mpirun noticed that process rank 0 with PID 21677 on node lello exited on signal 11 (Segmentation fault). - from this point on a weird error is continuously produced: Error on tasks: 0 - Partial _expression_ evaluation error! Reason: Time out for this request. - if I close Parallel Debugger Perspective, Eclipse exit unexpectedly.
I think it is obvious that not only a C code works perfectly in parallel debug with the same configuration, but I can use command line (parallel with xterm) gbd with no problem. Is there a way to debug c++ parallel code in eclipse, inspecting STL container?
Thanks a lot for any suggestion. Best regards,
Marco Cisternino
_______________________________________________ ptp-user mailing list ptp-user@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/ptp-user
|