Skip to content

Commit 66832e3

Browse files
committed
mtr: extend gdb backtace info
bt full - to include args and locals. set print sevenbit on - it is more useful to be able to see the exact bytes (in case something is dumped as a string and not hexadecimal digits) set print static-members off - there are many interesting (non-const) static members set frame-arguments all - even non-printables are useful to see. Let's make our bb logs give a little bit more detail on those hard to reproduce bugs. Tests on rhel7's gdb-7.6.1-120.el7
1 parent 767d8d8 commit 66832e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mysql-test/lib/My/CoreDump.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ sub _gdb {
7878
my ($tmp, $tmp_name) = tempfile();
7979
print $tmp
8080
"bt\n",
81-
"thread apply all bt\n",
81+
"set print sevenbit on\n",
82+
"set print static-members off\n",
83+
"set print frame-arguments all\n",
84+
"thread apply all bt full\n",
8285
"quit\n";
8386
close $tmp or die "Error closing $tmp_name: $!";
8487

0 commit comments

Comments
 (0)