RE: GDB 8.0 release/branching 2017-03-20 update

Metzger, Markus T
2017-03-29T14:38:50Z

Hello Yao,

> > Now I'm a bit lost. What exactly do you want changed at this point to
> > establish the Python interface?
>
> I requested the change to Python interface, as described
> https://sourceware.org/ml/gdb-patches/2017-03/msg00366.html and the
> python interface is implementable, nothing odd or fancy there. I want:
>
> 1, we agree on that new python interface,
> 2, decide we either change the python interface according to my
> proposal before 8.0 release or release 8.0 without these record
> (btrace) python interfaces.
>
> I've never suggest anything on the implementation of the CPython code
> for the python interface. Anything reasonable is good to me, and we are
> free to change them because they are internal things. How to establish
> such python interface is a little bit out of the scope of this
> discussion, but let me try again to make it clear.
>
> In my proposal above, we have Python classes,
>
> Instruction
> {
> pc, data, decode, size;
> };
>
> RecordInstruction : Instruction
> {
> sal;
> is_speculative;
> }

We agreed on this interface.

What I'm less clear about is what changes you are requesting in order to
establish that interface.

Should we just document it that way?
Should we implement an Instruction base class that throws in all functions?
Should we implement an Instruction base class that returns None in all functions?

Thanks,
Markus.
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928