Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!tut.cis.ohio-state.edu!snoid.cray.com!hrp From: hrp@snoid.cray.com (Hal Peterson) Newsgroups: gnu.gdb.bug Subject: xgdb dumps core Message-ID: <8902081953.AA11132@rothko.cray.com> Date: 8 Feb 89 19:53:14 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 12 I am compiling xgdb version 3.1 with X11R3 on a Sun-3 running SunOS 3.5, and it crashes when I hit the Quit button. The reason is that lookup_cmd is writing into the command string which is a constant in xgdb.c; therefore GCC (I'm using version 1.33 of that, BTW) makes the constant read-only. I fixed the problem by compiling xgdb.c by hand with the "-fwritable-strings" option on the GCC command line. The real fix is to change addbutton to make a copy of its input string. -- Hal Peterson / Cray Research / 1440 Northland Dr. / Mendota Hts, MN 55120 hrp@cray.com uunet!cray!hrp +1 612 681 3145