hrp@snoid.cray.com (Hal Peterson) (02/09/89)
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