- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know of any such switch.
In my experience, ddd does that quite sasisfactory without running much slower, just at the speed of normal debug code.
Just do Status > Backtrace
in DDD after the crash, if it does not position you automatically to the line after the crash.
In some complicated cases, valgrind also helps pinpoint the error, as the error may be caused by trashing of memory prior to actual core dump. This indeed runs many times slower.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. Can I use ddd with icpc, or I need to go back to g++? How do I use ddd with icpc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same way as you would with any other compiler. Compile your program with switch
-g
and then run it with ddd by
ddd executable_name
Intel compiler also comes wiht idb, which can be used in the same way.
idb exectuable_name
I perfer ddd, since it can nicely graphically display the data structures.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page