[RFA] parse and eval breakpoint conditions with correct language

Daniel Jacobowitz drow@mvista.com
Thu Sep 11 19:54:00 GMT 2003


On Thu, Sep 11, 2003 at 03:20:44PM -0400, Andrew Cagney wrote:
> 
> >Groumf! Our nightly regression test showed a small regression
> >which does not appear on my machine. We have an all-Ada program which
> >defines a function named Func1, and here is what the test does:
> >
> >        (gdb) break *Func1'Address
> >        (gdb) run
> 
> I've been wondering if this language stuff was going to interact badly 
> with breakpoints.  Anyway, is it possible to create an equivalent gcj 
> test case since gcj is likely more accessable to developers?

I think this is going to become an increasingly prominent problem. 
You can create testcases for this in C++, if your system starts C++
programs up in startup code which is auto(asm) instead of c++.  I think
it's as simple as:
  (gdb) break classname::func

And we won't correctly load the class.  This happens on Solaris, not
sure about GNU/Linux.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb-patches mailing list