Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!philabs!seismo!hao!hplabs!sri-unix!mullen@nrl-css
From: mullen%nrl-css@sri-unix.UUCP
Newsgroups: net.unix-wizards
Subject: bug in (what else?) sdb (4.1bsd)
Message-ID: <3199@sri-arpa.UUCP>
Date: Mon, 18-Jul-83 17:24:35 EDT
Article-I.D.: sri-arpa.3199
Posted: Mon Jul 18 17:24:35 1983
Date-Received: Wed, 20-Jul-83 08:03:08 EDT
Lines: 21

From:  Preston Mullen 

Sdb (4.1bsd) doesn't handle static arrays of structures properly.
If you have declared
	static struct { int a,b; } x[50];
then sdb inquiries for the values of x[1].a, x[2].a, x[3].a, etc.,
and x[1].b, x[2].b, x[3].b, etc., always return the values stored in
x[0].a and x[0].b, respectively.

This only happens if x is static; it works fine otherwise.
Also, indexing works OK with static arrays whose elements
are not structures.

I'll report this to 4bsd-bugs, but they don't seem to talk back
(except when your report is in the wrong format).  So, does anyone
out there know whether there is a simple fix?  Are there other
sdb problems one should know about?  (Nothing can drive you crazy
faster than debugging with a defective debugger.)

I understand the USENET people keep a bug list, but how does one
get to it from the ARPANET?