/ Check-in [79c07387]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update the tester.tcl --malloctrace option so that it uses eu-addr2line instead of addr2line.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:79c073878d56fc638b751b0e61295df182f7ee6f8ebd7319c1eeac1608abbac8
User & Date: dan 2019-02-05 16:53:26
Context
2019-02-05
19:51
Merge latest trunk into this branch. check-in: c089cc4f user: dan tags: reuse-schema
19:48
Fix compiler warnings on Windows. check-in: 4978ee8b user: drh tags: trunk
16:53
Update the tester.tcl --malloctrace option so that it uses eu-addr2line instead of addr2line. check-in: 79c07387 user: dan tags: trunk
14:36
The IS NOT NULL operator does not imply that the operand is never NULL. Fix for ticket [5948e09b8c415bc45da5cf] check-in: d840e9bb user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/tester.tcl.

  2049   2049       foreach f $lStack {
  2050   2050         set frames($f) 1
  2051   2051       }
  2052   2052     }
  2053   2053   
  2054   2054     set tbl2 "CREATE TABLE ${database}.frame(frame INTEGER PRIMARY KEY, line);\n"
  2055   2055     set tbl3 "CREATE TABLE ${database}.file(name PRIMARY KEY, content);\n"
         2056  +
         2057  +  set pid [pid]
  2056   2058   
  2057   2059     foreach f [array names frames] {
  2058   2060       set addr [format %x $f]
  2059         -    set cmd "addr2line -e [info nameofexec] $addr"
         2061  +    set cmd "eu-addr2line --pid=$pid $addr"
  2060   2062       set line [eval exec $cmd]
  2061   2063       append sql "INSERT INTO ${database}.frame VALUES($f, '$line');\n"
  2062   2064   
  2063   2065       set file [lindex [split $line :] 0]
  2064   2066       set files($file) 1
  2065   2067     }
  2066   2068