Thread View: gnu.gdb.bug
2 messages
2 total messages
Started by Stefano Casadei
Sat, 23 Jan 1993 02:44
calling member functions....(gcc-2.2.2,gdb-4.7,sun4)
Author: Stefano Casadei
Date: Sat, 23 Jan 1993 02:44
Date: Sat, 23 Jan 1993 02:44
14 lines
844 bytes
844 bytes
When trying to call a member function in gcc-2.2.2, gdb-4.7 (on a sun4) replies systematically as in the folloing example: (gdb) print f.y0(3,2) Structure has no component named y0. Please, tell me that I am not the only one the have these problem !!! What can I do about it ? Thanks. Please reply to casadei@cesena.mit.edu Stefano
calling member functions....(gcc-2.2.2,gdb-4.7,sun4)
Author: Scott Kay
Date: Tue, 26 Jan 1993 02:13
Date: Tue, 26 Jan 1993 02:13
36 lines
1882 bytes
1882 bytes
Hi,
>> When trying to call a member function in gcc-2.2.2, gdb-4.7 (on a sun4)
>> replies systematically as in the folloing example:
>> (gdb) print f.y0(3,2)
>> Structure has no component named y0.
>> Please, tell me that I am not the only one the have these problem !!!
>> What can I do about it ?
The answer is - it really doesn't know that there is an element y in
that structure. (I'm not trying to be obvious). I had the same problem
with some code I was writing on a Sun with gcc-2.2.2 and gdb-4.6. You
must use the syntax:
(from a previous mail message)
I figured out the problem. I don't know why yet but structures which
get "typdef'd" get handled as "unknown type" by gdb. By just stating
them as "struct my_struct { ... };" everything was fine. Live and
learn.
This should take care of your immediate problem - apparently the other
syntax causes gcc to simply malloc storage - essentially untyped which
has a structure that it only knows the size of - not the members.
Let me know if this is still a problem.
*******************************************************************************
Scott Kay
The Analytical Sciences Corporation (TASC)
55 Walkers Brook Drive
Reading, MA
INTERNET ADRESS: spkay@fandago.read.tasc.com
*******************************************************************************
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads