* cxx and gdb
@ 1995-03-31 5:00 Alex Kowalenko
1995-03-31 5:00 ` Jeff Diewald
0 siblings, 1 reply; 2+ messages in thread
From: Alex Kowalenko @ 1995-03-31 5:00 UTC (permalink / raw)
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.
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.
Alex Kowalenko
Software Contractor
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cxx and gdb
1995-03-31 5:00 cxx and gdb Alex Kowalenko
@ 1995-03-31 5:00 ` Jeff Diewald
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Diewald @ 1995-03-31 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-03-31 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-31 5:00 cxx and gdb Alex Kowalenko
1995-03-31 5:00 ` Jeff Diewald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox