johnson@gregsun.nrtc.northrop.com (Greg Johnson <gjohnson>) (11/15/89)
Is it possible to get ATT C++ 2.0 and dbx to behave together rationally? Any help would be greatly appreciated. I am working on a Sun SPARCstation. If I compile with the `-g' option, dbx (dbxtool, actually) allows me to single-step through programs basically correctly. It does not seem to single-step through implicitly invoked constructors on entry to functions, but I can live with that. The thing that drives me crazy is that dbx does not understand C++ variable names. A colleague things that the `demangler' c++filt might help somehow; but it appears that c++filt has as its purpose in life to make error messages from the loader intelligible. Can c++filt or some other tool make the debugger behave rationally in regard to variable names? I suppose it is possible to specify an option to c++filt to get it to print out a table of ugly native C names and their corresponding C++ source names, and then I could cut and paste a C name into the debugger to make queries of variable values. Sigh. Is there a better way of doing things? Thanks in advance - Greg Johnson ps - I don't usually monitor this group, so please send responses to me (johnson@nrtc.northrop.com).
ark@alice.UUCP (Andrew Koenig) (11/15/89)
In article <4305@gremlin.nrtc.northrop.com>, johnson@gregsun.nrtc.northrop.com (Greg Johnson <gjohnson>) writes: > Is it possible to get ATT C++ 2.0 and dbx to behave together rationally? While I haven't tried it myself, I hae heard that the port of C++ 2.0 that Sun sells for their machines is well integrated with dbx. -- --Andrew Koenig ark@europa.att.com