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:
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user