This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] parse and eval breakpoint conditions with correct language


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]