https://sourceware.org/bugzilla/show_bug.cgi?id=32746
Bug ID: 32746
Summary: ctf_member_info() cannot handle anonymous structs with
cvr-quals
Product: binutils
Version: 2.45 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libctf
Assignee: unassigned at sourceware dot org
Reporter: stephen.s.brennan at oracle dot com
Target Milestone: ---
The reproducer for this was using dtrace with libctf, with the following
minimal probe script:
fbt::do_wp_page:entry
{
this->owner = this->vmf->vma->vm_mm->owner;
}
Which gives the following error:
dtrace: failed to compile script tracewporig.d: line 3: vma is not a member of
struct vm_fault
The reason is that struct vm_fault is defined as so:
struct vm_fault {
const struct {
struct vm_area_struct *vma; /* Target VMA */
...
ctf_member_info() is supposed to be able to traverse the anonymous struct, but
due to the "const" added in here, it doesn't.
--
You are receiving this mail because:
You are on the CC list for the bug.