🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Derek Clegg Thu, 18 May 1989 18:06
`gdb' doesn't understand variable length arrays
#785
Author: Derek Clegg
Date: Thu, 18 May 1989 18:06
33 lines
1188 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);
}
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