From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,40ca5c4d923ecd9a,start X-Google-Attributes: gid111c93,public From: fo742998@lance.colostate.edu (Fred L. Ogden) Subject: gdb is not working- fix? Date: 1998/03/06 Message-ID: <6dnmfe$k88@yuma.ACNS.ColoState.EDU>#1/1 X-Deja-AN: 331276738 Summary: gdb is behaving strangely, RH5.0, PC164/500 Keywords: gdb problem Organization: Colorado State University, Fort Collins, CO 80523 Newsgroups: comp.os.linux.alpha Hello: I purchased a 500 MHz PC164 Alpha machine a few months ago for number crunching. The finite-difference model I am trying to run on it runs on all other platforms I've tried (HPUX, SunOS, AXP, Linux-Intel), but not on Linux-Alpha. I need to know why- but gdb (and xxgdb) are not working properly. The machine came with RH4.1. I just upgraded to RH5.0 by doing a total re-install, thinking that this problem would surely be fixed by now. It isn't. Here are the symptoms. Running gdb on a simple "hello world" program gives the following gripe when the printf statement is executed: (gdb) s 20 printf("hello world\n"); (gdb) s printf () at printf.c:30 printf.c:30: No such file or directory. (gdb) Very frustrating. When I try to run gdb on my finite-difference code, it gets even stranger. For instance, if I step over a line like: i=1; and then ask gdb to print the value of "i", it says 0. Utter nonsense. My questions: - How can gdb be so broken? - Am I not doing something I should be doing? - Is there perhaps a newer or better version of gdb I can get? - Is the problem with gcc or glibc? I am running gdb 4.16 (alpha-redhat-linux), gcc version 2.7.2.3 and glibc-2.0.5c-9. Any assistance will be greatly appreciated. Until I can find out why my model is not running on this machine, it is a pretty, but expensive, paperweight. If you e-mail me, please use the address below. Sincerely, Fred Ogden ogden@engr.uconn.edu p.s. thanks to Scott D. for letting me use my old account since my University does not get this newsgroup!