mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
and stack address description.
* A race condition on an allocated block shows the stacktrace, but
does not show the thread # that allocated the block.
This patch adds the output of the thread # that allocated the block.
* The patch also fixes the confusion that might appear between
the core threadid and the helgrind thread nr in Stack address description:
A printed stack addrinfo was containing a thread id, while all other helgrind
messages are using (supposed to use) an 'helgrind thread #' which
is used in the thread announcement.
Basically, the idea is to let a tool set a "tool specific thread nr'
in an addrinfo.
The pretty printing of the addrinfo is then by preference showing this
thread nr (if it was set, i.e. different of 0).
Currently, only helgrind uses this addrinfo tnr.
Note: in xml mode, the output is matching the protocol description.
I.e., GUI should not be impacted by this change, if they properly implement
the xml protocol.
* Also, make the output produced by m_addrinfo consistent:
The message 'block was alloc'd at' is changed to be like all other
output : one character indent, and starting with an uppercase
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14175
20 lines
669 B
Plaintext
20 lines
669 B
Plaintext
relaying data between gdb and process ....
|
|
vgdb-error value changed from 0 to 999999
|
|
Lock ga 0x........ {
|
|
Address 0x........ is 0 bytes inside data symbol "mx"
|
|
kind mbRec
|
|
{ W1:thread #x tid #x }
|
|
}
|
|
Address 0x........ is 0 bytes inside a block of size 1,008 alloc'd
|
|
at 0x........: malloc (vg_replace_malloc.c:...)
|
|
by 0x........: th (hg01_all_ok.c:22)
|
|
by 0x........: mythread_wrapper (hg_intercepts.c:...)
|
|
...
|
|
Block was alloc'd by thread #x
|
|
Lock ga 0x........ {
|
|
Address 0x........ is 0 bytes inside data symbol "mx"
|
|
kind mbRec
|
|
{ W1:thread #x tid #x }
|
|
}
|
|
Address 0x........ is 0 bytes inside an unallocated block of size 1,008 in arena "client"
|