https://bugs.kde.org/show_bug.cgi?id=452802

--- Comment #7 from Paul Floyd <pjfl...@wanadoo.fr> ---
After barking up the wrong tree for some time (merging RW PT_LOADs), I think
that I now see what I need to do.

1. ULong VG_(di_notify_mmap)( Addr a, Bool allow_SkFileV, Int use_fd )

This is probably the trickier one. It needs to handle 3 possible cases
A. only 1 RW PT_LOAD, behaviour as present.
B. first of 2 RW PT_LOADs, add di to XA and return 0
C. second of 2 RW PT OADs, add di to XA and return
di_notify_ACHIEVE_ACCEPT_STATE ( di )

For B I can look at the next NSegment VG_(am_find_nsegment)(seg->end+1);
And for C I can look at the previous NSegment
VG_(am_find_nsegment)(seg->start-1);


2. Change Bool ML_(read_elf_debug_info) ( struct _DebugInfo* di )

This should be able to see when there are 2 RW dinfos, and act accordingly to
look for .data .got.plt .bss in the second one.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to