According to Thomas Tan:
I was debugging the following linked list program with a record under gdb, but
when I tried to see what one of the members of the record was, I get "void, void, void." Do any of you know what's wrong?
Strange: This works fine for me :-(with my current development GPC, of course;-).
string10 = packed array[1..10] of char;
Perhaps it helps to drop the `packed'? It does not make any difference anyway unless you have specified `--standard-pascal', `--extended-pascal', or similar.
Peter -- Peter Gerwinski, Essen, Germany, free physicist and programmer Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997 PGP key fingerprint: AC 6C 94 45 BE 28 A4 96 0E CC E9 12 47 25 82 75 Fight the SPAM! - http://maps.vix.com/
Peter Gerwinski,peter@agnes.dida.physik.uni-essen.de,Internet writes:
According to Thomas Tan:
I was debugging the following linked list program with a record under gdb,
but
when I tried to see what one of the members of the record was, I get "void, void, void." Do any of you know what's wrong?
Strange: This works fine for me :-(with my current development GPC, of course;-).
Okay, can you tell me EXACTLY what you typed in gdb to access the members of the pointer to a record? Was it like "print ptr->word"?
------------------------------------------------------ This message sent using the FirstClass SMTP/NNTP Gateway. From: Choate Rosemary Hall 333 Christian St. Wallingford, CT. 06492