Bug 424866 - who_points_at should also print the address of the beginning of the interesting block
Summary: who_points_at should also print the address of the beginning of the interesti...
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (show other bugs)
Version: unspecified
Platform: Other Other
: NOR minor
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-31 14:38 UTC by Noel Grandin
Modified: 2020-07-31 14:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noel Grandin 2020-07-31 14:38:26 UTC
The who_points_at thing prints out something like

    Searching for pointers to 0xnotdead
    *0xalsonot points at 0xnotdead
    Address 0xalsonot is 168 bytes inside a block of size 232 alloc'd

but when I need to chain backwards from that block I need to compute

    0xalsonot - 168

which is hex minus decimal, which means I need to do it 3 times to sure I subtracted the right thing from the right other thing and converted the right thing from decimal to hex.

Which is more than my poor little brain can handle reliably :-)

THanks