Mail Archives: djgpp/1996/09/05/14:14:08
Xref: | news2.mv.net comp.os.msdos.djgpp:8315
|
From: | Geert Goossens <gagoosse AT info DOT vub DOT ac DOT be>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | gdb: public variables address error
|
Date: | Thu, 05 Sep 1996 17:26:42 +0200
|
Organization: | Vrije Universiteit Brussel (VUB)
|
Lines: | 32
|
Message-ID: | <322EF132.3306@info.vub.ac.be>
|
NNTP-Posting-Host: | info4.vub.ac.be
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi,
I have configured gdb v. 4.12 (under ms-dos) for a m68k-coff target and
adapted it for remote debugging. Everything seems to work fine. I can
read the contents of static variables. Het gets the address and the type
right. But for public variables, gdb seems to think they reside at
address 0. He does know the type correctly. At the other hand, if you
print the variable with an underscore prepended to it, like _i (the way
they are exported in assembly), the address of this name (with _) is the
correct address of the variable. This would be an insignificant problem
if only he did not think the type of these variables were int.
Does anyone have this problem as well? If so, do you know a solution for
it?
Thanks,
Geert
BTW: if you know a solution, could you also e-mail it to me, please? I
am not always able to check this newsgroup regularly.
--
+------------------------------------------+
| Geert Goossens (geert AT info DOT vub DOT ac DOT be) |
| Digital Telecom Department INFO/TW |
| Vrije Universiteit Brussel |
| Pleinlaan 2 |
| 1050 Brussel |
| Belgium |
| |
| tel.: +32-2-629.29.77 |
| fax.: +32-2-629.28.70 |
+------------------------------------------+
- Raw text -