I’m using the dwarf debug format as I was getting a “Seg too large…” error
from wcc, which I understand is from the debug sym table overflowing.
So, the dwarf format works, except that I can’t view global data, or, static
local data.
Anyone know of a workaround/fix/etc…?
Thanks, Bruce.
Bruce Edge <bedge@sattel.com> wrote:
I’m using the dwarf debug format as I was getting a “Seg too large…” error
from wcc, which I understand is from the debug sym table overflowing.
So, the dwarf format works, except that I can’t view global data, or, static
local data.
Anyone know of a workaround/fix/etc…?
i use -gd2 and i can see globals and statics.
i am using 10.6 as provided on the June CD
what versions are you running?
Randy Martin email: randy@qnx.com www.qnx.com
QNX Software Systems Ltd. QUICS: randy (613) 591-0934 (data)
(613) 591-0931 x287 (voice) mail: 175 Terence Matthews Cr
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8
Randy Martin wrote:
Bruce Edge <> bedge@sattel.com> > wrote:
I’m using the dwarf debug format as I was getting a “Seg too large…” error
from wcc, which I understand is from the debug sym table overflowing.
So, the dwarf format works, except that I can’t view global data, or, static
local data.
Anyone know of a workaround/fix/etc…?
i use -gd2 and i can see globals and statics.
i am using 10.6 as provided on the June CD
what versions are you running?
-rwxrwxr-x 1 root root 50122 Dec 03 1997
/usr/watcom/10.6/bin/cc
-rwxrwxr-x 1 root root 531092 Sep 16 1997
/usr/watcom/10.6/bin/wcc
-rwxrwxr-x 1 root root 533890 Sep 16 1997
/usr/watcom/10.6/bin/wcc386
-rwxr-xr-x 1 root root 239305 Oct 21 1996
/usr/watcom/10.6/bin/wlink
I am also using -g2d. I’ll try pulling off the updates from quics.
Thanks, Bruce.
–
Randy Martin email: > randy@qnx.com > > www.qnx.com
QNX Software Systems Ltd. QUICS: randy (613) 591-0934 (data)
(613) 591-0931 x287 (voice) mail: 175 Terence Matthews Cr
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8
–
To err is human; to forgive is simply not our policy.
– MIT Assasination Club
Bruce Edge wrote:
OK, tried the latest patches from quics, same binary dates as I already had.
No difference.
The June CD is shipping a 1997 release compiler?
I’m also using stack based calling convention (option -5s),
as I need to interface with gcc generated code.
-Bruce.
i use -gd2 and i can see globals and statics.
i am using 10.6 as provided on the June CD
what versions are you running?
-rwxrwxr-x 1 root root 50122 Dec 03 1997
/usr/watcom/10.6/bin/cc
-rwxrwxr-x 1 root root 531092 Sep 16 1997
/usr/watcom/10.6/bin/wcc
-rwxrwxr-x 1 root root 533890 Sep 16 1997
/usr/watcom/10.6/bin/wcc386
-rwxr-xr-x 1 root root 239305 Oct 21 1996
/usr/watcom/10.6/bin/wlink
I am also using -g2d. I’ll try pulling off the updates from quics.
Thanks, Bruce.
–
Randy Martin email: > randy@qnx.com > > www.qnx.com
QNX Software Systems Ltd. QUICS: randy (613) 591-0934 (data)
(613) 591-0931 x287 (voice) mail: 175 Terence Matthews Cr
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8
–
To err is human; to forgive is simply not our policy.
– MIT Assasination Club
–
Cohen’s Law:
There is no bottom to worse.
Bruce Edge <bedge@sattel.com> wrote:
Randy Martin wrote:
Bruce Edge <> bedge@sattel.com> > wrote:
I’m using the dwarf debug format as I was getting a “Seg too large…” error
from wcc, which I understand is from the debug sym table overflowing.
So, the dwarf format works, except that I can’t view global data, or, static
local data.
Anyone know of a workaround/fix/etc…?
i use -gd2 and i can see globals and statics.
i am using 10.6 as provided on the June CD
what versions are you running?
-rwxrwxr-x 1 root root 50122 Dec 03 1997
/usr/watcom/10.6/bin/cc
-rwxrwxr-x 1 root root 531092 Sep 16 1997
/usr/watcom/10.6/bin/wcc
-rwxrwxr-x 1 root root 533890 Sep 16 1997
/usr/watcom/10.6/bin/wcc386
-rwxr-xr-x 1 root root 239305 Oct 21 1996
/usr/watcom/10.6/bin/wlink
I am also using -g2d. I’ll try pulling off the updates from quics.
your versions above are the same that i am using. if you have a test case
that can’t show you globals please let me take a look.
–
Randy Martin email: randy@qnx.com www.qnx.com
QNX Software Systems Ltd. QUICS: randy (613) 591-0934 (data)
(613) 591-0931 x287 (voice) mail: 175 Terence Matthews Cr
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8
Randy Martin wrote:
[snip]
your versions above are the same that i am using. if you have a test case
that can’t show you globals please let me take a look.
–
Randy Martin email: > randy@qnx.com > > www.qnx.com
QNX Software Systems Ltd. QUICS: randy (613) 591-0934 (data)
(613) 591-0931 x287 (voice) mail: 175 Terence Matthews Cr
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8
OK, here:
test.cc:
int x = 100;
char * buf = “global test message”;
void main() {
int y = 200;
char * buf2 = “local”;
char * ptr = buf;
ptr++;
}
cc -D__QNX__ -v 10.6 -b -5s -fp5 -M -zp1 -gd2 test.cc -o test
/usr/watcom/10.6/bin/wpp386 -zq -d+ -d__QNX__ -d2 -hd -ms -fp5 -zp1 -5s
-i=/usr/watcom/10.6/usr/include -i=/usr/include test.cc
/usr/watcom/10.6/bin/wlink op quiet form qnx flat na test op static op
map=test.map op priv=3 op c libp /usr/watcom/10.6/usr/lib:/usr/lib:. de dwarf
l /usr/watcom/10.6/usr/lib/beta3s.lib f
/mnt/louie/home/bedge/p4/ncc/524/main/qnx/source/usr/darts/src/tasks/lcb/lcbd/test.o
op offset=40k op st=32k
$
$ ls -l test*
-rwxrwxr-x 1 bedge bedge 6487 Oct 10 16:19 test
-rw-rw-r-- 1 bedge bedge 135 Oct 10 16:19 test.cc
-rw-rw-r-- 1 bedge bedge 6306 Oct 10 16:19 test.map
-rw-rw-r-- 1 bedge bedge 2045 Oct 10 16:19
test.o
I can examine y, ptr, and buf2, but not x and buf.
-Bruce.
test.cc:
int x = 100;
char * buf = “global test message”;
void main() {
int y = 200;
char * buf2 = “local”;
char * ptr = buf;
ptr++;
}
cc -D__QNX__ -v 10.6 -b -5s -fp5 -M -zp1 -gd2 test.cc -o test
/usr/watcom/10.6/bin/wpp386 -zq -d+ -d__QNX__ -d2 -hd -ms -fp5 -zp1 -5s
-i=/usr/watcom/10.6/usr/include -i=/usr/include test.cc
/usr/watcom/10.6/bin/wlink op quiet form qnx flat na test op static op
map=test.map op priv=3 op c libp /usr/watcom/10.6/usr/lib:/usr/lib:. de dwarf
l /usr/watcom/10.6/usr/lib/beta3s.lib f
/mnt/louie/home/bedge/p4/ncc/524/main/qnx/source/usr/darts/src/tasks/lcb/lcbd/test.o
op offset=40k op st=32k
$
I can examine y, ptr, and buf2, but not x and buf.
you’re right. strange.
it only can’t reference buf and x with -gd2. with regular watcom debug -g it
works okay.
but you can still see the global ptr…
i’ve put this in as a problem report… we’ll have to see what the group can
do.
–
Randy Martin email: randy@qnx.com www.qnx.com
QNX Software Systems Ltd. QUICS: randy (613) 591-0934 (data)
(613) 591-0931 x287 (voice) mail: 175 Terence Matthews Cr
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8
OK, thanks, I can’t ask for more than that.
I’ll be waiting, in the mean time, printf…
-Bruce.
Randy Martin wrote:
test.cc:
int x = 100;
char * buf = “global test message”;
void main() {
int y = 200;
char * buf2 = “local”;
char * ptr = buf;
ptr++;
}
cc -D__QNX__ -v 10.6 -b -5s -fp5 -M -zp1 -gd2 test.cc -o test
/usr/watcom/10.6/bin/wpp386 -zq -d+ -d__QNX__ -d2 -hd -ms -fp5 -zp1 -5s
-i=/usr/watcom/10.6/usr/include -i=/usr/include test.cc
/usr/watcom/10.6/bin/wlink op quiet form qnx flat na test op static op
map=test.map op priv=3 op c libp /usr/watcom/10.6/usr/lib:/usr/lib:. de dwarf
l /usr/watcom/10.6/usr/lib/beta3s.lib f
/mnt/louie/home/bedge/p4/ncc/524/main/qnx/source/usr/darts/src/tasks/lcb/lcbd/test.o
op offset=40k op st=32k
$
I can examine y, ptr, and buf2, but not x and buf.
you’re right. strange.
it only can’t reference buf and x with -gd2. with regular watcom debug -g it
works okay.
but you can still see the global ptr…
i’ve put this in as a problem report… we’ll have to see what the group can
do.
–
Randy Martin email: > randy@qnx.com > > www.qnx.com
QNX Software Systems Ltd. QUICS: randy (613) 591-0934 (data)
(613) 591-0931 x287 (voice) mail: 175 Terence Matthews Cr
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8
–
BEWARE! People acting under the influence of human nature.