Article View: gnu.gdb.bug
Article #10226`gdb' doesn't understand variable length arrays
From: Derek Clegg
Date: Sat, 20 May 1989 03:17
Date: Sat, 20 May 1989 03:17
33 lines
1289 bytes
1289 bytes
/* Versions:
* gdb version 3.1; gcc version 1.35
* File:
* <this file>
* Problem:
* `gdb' doesn't understand variable length arrays (an extension provided
* by `gcc').
* Repeat by:
* % gcc -g <this file> -o bug
* % gdb -q bug
* Reading symbol data from /usr/sumatra/people/derek/gnu/gdb/bug...done.
* (gdb) break foo
* Ranged type doesn't fit within known sizes.
* (gdb) quit
*
* Notes:
* `gdb' was compiled with `config.gdb sun3os4'.
* `gcc' was compiled with `config.gcc sun3-os4'.
* I am using a Sun 3/60 with UNIX 4.2 (Sun release 4.0.1).
*
* Derek B Clegg ({uunet,ucbcad,sun}!island!derek)
*/
void
foo(n)
int n;
{
char m[n + 1];
}
main()
{
foo(3);
}
Technical Details
Message-ID:
<31460@sri-unix.SRI.COM>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcvax!uunet!lll-winken!arisia!quintus!sri-unix!rootShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,e5bc1f73b2dc96c6,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1989-10-31 18:01:01 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcvax!uunet!lll-winken!arisia!quintus!sri-unix!root From: island!M4!derek@UUNET.UU.NET (Derek Clegg) Newsgroups: gnu.gdb.bug Subject: `gdb' doesn't understand variable length arrays Message-ID: <31460@sri-unix.SRI.COM> Date: 20 May 89 03:17:14 GMT Sender: root@unix.SRI.COM Lines: 33 Posted: Sat May 20 04:17:14 1989