From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,217f622909998044 X-Google-Attributes: gidfee84,public From: diewald@virrus.zko.dec.com (Jeff Diewald) Subject: Re: cxx and gdb Date: 1995/03/31 Message-ID: <3lh777$bas$1@usenet.pa.dec.com>#1/1 X-Deja-AN: 100639285 distribution: world references: <3lgqid$d1m@inferno.mpx.com.au> organization: Digital Equipment Corporation reply-to: diewald@virrus.zko.dec.com (Jeff Diewald) newsgroups: comp.unix.osf.osf1 In article <3lgqid$d1m@inferno.mpx.com.au>, alex@jolt.mpx.com.au (Alex Kowalenko) writes: |>Anyone used cxx with gdb on the DEC/OSF1/Alpha platform? |>gdb doesn't seem to find pointer to _this_ and any local variables, |>which is a shame, since dbx is not any better. Alex, Have you tried DECladebug? It works extremely well with cxx: virrus[jeff 116]> decladebug gflags002-g-cxx Welcome to the DECladebug Debugger Version 3.0-16 ------------------ object file name: gflags002-g-cxx Reading symbolic information ...done (decladebug) stop in List::addElement Enter the number of the overloaded function you want ---------------------------------------------------- 1 void addElement (const int) 2 void addElement (ListElement* const) 3 None of the above ---------------------------------------------------- 1 [#1: stop in void List::addElement(const int) ] (decladebug) run Create list [mainList] Create list [duplicate List] [Created] ListElement (-1), next is (NULL) buildLocalList [1] stopped at [void List::addElement(const int):106 0x1200027d0] 106 cout << "Add element to list [" << _listName << "]" << endl; (decladebug) print this 0x140000060 (decladebug) print *this class { _listName = 0x140000088="mainList"; _firstElement = 0x140000180; _lastElement = 0x140000180; } (decladebug) list 103 103 void List::addElement (const int data) 104 { 105 #ifdef DO_IO > 106 cout << "Add element to list [" << _listName << "]" << endl; 107 #endif // DO_IO 108 ListElement * const newElement = new ListElement (data); 109 append (newElement); 110 } (decladebug) print data 0 (decladebug) DECladebug 3.0.*: - accepts the dbx command set - supports C, C++, FORTRAN-77, FORTRAN-90, Ada, and COBOL - supports debugging threads - attaches/detaches to/from running processes - comes with EMACS integration support - has significant performance improvements over 2.0 - contains even more In particular, we've made significant improvements in our startup times and our memory consumption. We now do much better with large programs than we did on 2.0. (We've seen some monsters, too - and some of those monsters are now part of our regular testbed.) If you get FUSE, you can also get an integrated Motif GUI for DECladebug. |> |>cxx has some interesting problems, like interupting what the error messages |>really mean, like ; missing sometimes means undefined symbol? |>The problem is finding out what the errors really are and then fixing them. The C++ is aware of these problems and is working on them. Please report the ones you find particularly troubling. (through the appropriate Digital error reporting channels) ----------------------------------------------------------------------------- Jeff Diewald EASYNET: VIRRUS::DIEWALD DECladebug group INTERNET: diewald@virrus.zko.dec.com Digital Equipment Corp. Note: I don't read every article in this group. If you have debugger questions, I may be able to get you an answer. You're much more likely to get an answer if you put "Debug" somewhere in your subject line.