reznikmm / protobuf

The Google Protocol Buffers implementation in Ada
MIT License
32 stars 5 forks source link

GDB pretty printer for vectors #24

Closed mgrojo closed 1 year ago

mgrojo commented 1 year ago

Requires https://github.com/AdaCore/gnat-gdb-scripts

Implementation based on Ada.Containers.Vectors: https://github.com/AdaCore/gnat-gdb-scripts/blob/master/gnatdbg/vectors.py

Implements #22

mgrojo commented 1 year ago

This is working for most of my vector fields, but I've seen cases where it is not applied. I didn't have more time to check if there is any visible difference, but at first sight, and in the Ada definition, they looked the same to me.

Are you aware of different vector definitions in the generated code?

mgrojo commented 1 year ago

For fixing the build, it seems we have to add the new python file to this list: https://github.com/reznikmm/protobuf/blob/a1422f35ca12ad07c7611b4aa2cd86fd01fa8f91/packages/protobuf.spec#L84

But I don't know what variable to use for the prefix.