Path: utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!promethium.bsw.com!adam From: adam@promethium.bsw.com (Adam de Boor) Newsgroups: gnu.gcc.bug Subject: const vars => N_FUN be bad Message-ID: <8903140452.AA03400@promethium.bsw.com> Date: 14 Mar 89 04:52:43 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 25 if you have a construct like switch (...) case ...: { static const struct { char *name; int foo; } predefs[] = { .... }; gcc will generate an N_FUN stab entry for predefs, causing gdb to (rightly) have fits (unmatched left brace). Is there any pressing reason why you cannot use N_STSYM? Looking at the documentation I have from Sun does not preclude the use of STSYM for static variables in the text segment, whereas N_FUN has all sorts of nasty implications one doesn't want in this case. The comment in dbxout.c: /* This is not quite right, but it's the closest of all the codes that Unix defines. */ is correct in saying it's not quite right... a