Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hpfcso!bruno From: bruno@hpfcso.FC.HP.COM (Bruno Melli) Newsgroups: comp.sys.hp Subject: Re: xdb bug? Message-ID: <7370388@hpfcso.FC.HP.COM> Date: 6 May 91 16:16:01 GMT References: <1991Apr30.152402.29377@eye.com> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 14 > The problem is that xdb assumes that all structs of type "struct foo" > will be the same as the first struct of type "struct foo" that it > encounters in the link sequence. If the 2 structures have the same name, this is indeed the correct explanation. If however the structures have a different name, this is most likely due to invalid debug information. We just ran into a similar problem about 2 weeks ago. One potential work around is to compile a dummy file that just includes the structure definition, and declares a static of that type. Link in that dummy .o file ahead of any other file when you create a debuggable file. That should solve your problem. bruno.