Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add accessibility (public, private, protected) to drgn.TypeMember #83

Open
Tracked by #328
osandov opened this issue Jan 10, 2021 · 1 comment
Open
Tracked by #328
Assignees
Labels
C++ Support for C++ debugging enhancement New feature or request

Comments

@osandov
Copy link
Owner

osandov commented Jan 10, 2021

We need to:

  1. Add the accessibility to struct drgn_type_member and drgn.TypeMember (probably as an enum).
  2. Include it when pretty printing a type.
  3. Parse it from DWARF.

From section 5.7.6 in the DWARF 5 spec:

A data member entry may have a DW_AT_accessibility attribute. If no accessibility attribute is present, private access is assumed for an member of a class and public access is assumed for an member of a structure, union, or interface.

Section 2.8 defines the accessibility codes (DW_ACCESS_public, DW_ACCESS_private, and DW_ACCESS_protected).

@osandov osandov added enhancement New feature or request C++ Support for C++ debugging labels Jan 10, 2021
prozak added a commit to prozak/drgn that referenced this issue Feb 15, 2022
Also added end to end CPP tests

This is a prerequisite to osandov#83

Signed-off-by: prozak <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 15, 2022
Also added end to end CPP tests

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 15, 2022
Also added end to end CPP tests

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 18, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83
prozak added a commit to prozak/drgn that referenced this issue Feb 18, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 18, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 18, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 19, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 19, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 19, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 22, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
prozak added a commit to prozak/drgn that referenced this issue Feb 22, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
osandov pushed a commit to prozak/drgn that referenced this issue Feb 22, 2022
Also added test for CPP class type

This is a prerequisite to osandov#83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
osandov pushed a commit that referenced this issue Feb 22, 2022
Also added test for CPP class type

This is a prerequisite to #83

Signed-off-by: mykolal <nickolay.lysenko@gmail.com>
@prozak
Copy link
Contributor

prozak commented Feb 22, 2022

@osandov I will take this one if you do not mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Support for C++ debugging enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants