From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c9a35636a617e30b X-Google-Attributes: gidfee84,public From: Jeff Diewald Subject: Re: Need help ladebug/C++/OSF1 Date: 1998/05/08 Message-ID: <355368EA.BF8A92EF@zko.dec.com>#1/1 X-Deja-AN: 351532857 Content-Transfer-Encoding: 7bit References: <3551852E.177A@stna.dgac.fr> Mime-Version: 1.0 To: kurz@stna.dgac.fr Content-Type: text/plain; charset=us-ascii Organization: Ladebug Group, Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 Greg Kurz wrote: > Hi, > > I got a problem using ladebug with a C++ program on OSF1 : ladebug > refuses sometimes to set breakpoints. > > (ladebug) b > 206 > Warning: More than one file named 'CCC_InfosPln.cc' found in the binary. > Warning: Breakpoint not set > > Any clue somebody ? Without any more information, I'd guess that you're using a newer C++ compiler and you've got a source file with several template definitions. If this is NOT the case, then please report the problem to the Ladebug team, because we'd like to know about it. (To report a problem, it really helps to know exactly which version of Ladebug, the compiler, and the operating system you're using. It also helps to have a small code example.) If it is the problem, it's a known bug that we're trying to find a fix for. The difficulty is that the compiler is producing symbol table information separately for each template - which provides more than one "file" contribution in the binary. This confuses Ladebug. The solution is to make Ladebug smarter, make the compilers produce more consumable symbol table information, or some combination of the two. For some simple cases, you may be able to work around it by moving the template definitions into their own separate files. (Ladebug, for example, is written in C++, has a lot of templates, is compiled with one of the latest compilers, and does not demonstrate this problem as far as we know. We use Ladebug to debug itself.) ----------------------------------------------------------------------- Jeff Diewald Vortex of Chaos Ladebug group diewald@zko.dec.com Digital Equipment Corp.