Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DECstation problems: Fix.cc, debugging any g++ code

1 view
Skip to first unread message

Martin David Michael Jr

unread,
Mar 10, 1991, 12:27:35 PM3/10/91
to
I have installed 1.39 versions of gcc, g++, libg++ and gdb-3.92.6 on
DECstations under Ultrix 4.1. The libg++ tests produce expected
output, except for some fuzziness in tRandom and total failure in tFix:

Fix: identities should be displayed
[X] displays the precision of a given value
[*] indicates that the full precision is not used for coding reasons
0 [16] = 0.00000 [16]
.5 [16] = 0.50000 [16]
-.5 [17] = -0.50000 [17]
.1 [33] = 0.10000 [33]
-.5 [17] = 0.10000 [12320]
.3 [16] = 0.30000 [12320]
Segmentation fault

I have heard vague grumblings about Fix; is this the sort of problem
that other people are having? Does anyone know how to correct this,
or should I just yank it from libg++.a and wait for a new version?

When I first ran into this problem, I decided to try to take a look at
it myself, so I tried using gdb on it (both 3.5 and 3.92.6 versions)
but quickly found that I couldn't access any variables whatsoever.
For instance, gdb won't tell me the value of "woof" at the appropriate
breakpoint, complaining that there is "No such symbol in current
context."

#include <stream.h>
main()
{
int woof=37;
=> cout << "Hello, world\n";
}

I would really like to be able to use a debugger on g++ code. Could
anyone help me? Thanks in advance.

--
David Martin
Project Vincent, Iowa State University da...@iastate.edu

0 new messages