Philippe Waroquiers f6fcc74a68 Allows to only output "new" loss records when doing a leak search.
In the memcheck monitor 'leak_search', add a "new" keyword corresponding
to the delta leak search mode LCD_New.

Add a new client request VALGRIND_DO_NEW_LEAK_CHECK.

When doing a delta leak search, new loss records are marked with "new"
(whatever the delta leak search mode).

Note that trailing white spaces were removed in mc_main.c.
A much small diff can be looked at by using the -w diff option.
2022-12-30 20:56:47 +01:00

42 lines
1.8 KiB
Plaintext

(action at startup) vgdb me ...
expecting details 10 bytes reachable
10 bytes in 1 blocks are still reachable in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: f (leak-delta.c:15)
by 0x........: main (leak-delta.c:72)
expecting to have NO details
expecting details +10 bytes lost, +21 bytes reachable
expecting details +65 bytes reachable
expecting to have NO details
expecting details +10 bytes reachable
expecting details -10 bytes reachable, +10 bytes lost
expecting details -10 bytes lost, +10 bytes reachable
expecting details 32 (+32) bytes lost, 33 (-32) bytes reachable
expecting details 42 (+42) bytes lost, 43 (+43) bytes reachable
expecting to have NO details
finished
leaked: 117 bytes in 3 blocks
dubious: 0 bytes in 0 blocks
reachable: 64 bytes in 3 blocks
suppressed: 0 bytes in 0 blocks
10 bytes in 1 blocks are still reachable in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: f (leak-delta.c:15)
by 0x........: main (leak-delta.c:72)
21 bytes in 1 blocks are still reachable in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: f (leak-delta.c:24)
by 0x........: main (leak-delta.c:72)
32 bytes in 1 blocks are definitely lost in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: f (leak-delta.c:29)
by 0x........: main (leak-delta.c:72)
33 bytes in 1 blocks are still reachable in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: f (leak-delta.c:29)
by 0x........: main (leak-delta.c:72)
85 bytes in 2 blocks are definitely lost in loss record ... of ...
at 0x........: malloc (vg_replace_malloc.c:...)
by 0x........: f (leak-delta.c:53)
by 0x........: main (leak-delta.c:72)