1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Update the tester.tcl --malloctrace option so that it uses eu-addr2line instead of addr2line.

FossilOrigin-Name: 79c073878d56fc638b751b0e61295df182f7ee6f8ebd7319c1eeac1608abbac8
This commit is contained in:
dan
2019-02-05 16:53:26 +00:00
parent d57936721b
commit dee9be9b3b
3 changed files with 11 additions and 9 deletions

View File

@ -2054,9 +2054,11 @@ proc memdebug_log_sql {filename} {
set tbl2 "CREATE TABLE ${database}.frame(frame INTEGER PRIMARY KEY, line);\n"
set tbl3 "CREATE TABLE ${database}.file(name PRIMARY KEY, content);\n"
set pid [pid]
foreach f [array names frames] {
set addr [format %x $f]
set cmd "addr2line -e [info nameofexec] $addr"
set cmd "eu-addr2line --pid=$pid $addr"
set line [eval exec $cmd]
append sql "INSERT INTO ${database}.frame VALUES($f, '$line');\n"