This is the mail archive of the frysk@sourceware.org mailing list for the frysk 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: Roadmap beginnings


Tom Tromey <tromey@redhat.com> writes:

> Ian> A related problem, which I don't know how to solve, is that many
> Ian> simple C++ accessors get inlined, and are not available when
> Ian> debugging.  This makes it vastly more difficult to debug optimized C++
> Ian> programs (indeed, this problem is more serious for me in practice than
> Ian> the debuginfo problems discussed at the summit).
>
> I have seen a few ideas kicked around:
>
> 1. Always emit the accessors out-of-line.
>
> 2. Emit DWARF code corresponding to the accessors.
>
> 3. Write Python code equivalent to the accessors and arrange for the
>    debugger to invoke it in the appropriate situations.
>
> #1 seems like the obvious choice, aside from code size problems.  Are
> those severe?

Not for me.  I suppose this would be yet another compiler debugging
option.

Python code would be sort of a last resort here, since it presumably
only works for standard classes, not for the classes I define myself.
I do write my own iterators.

Ian


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