diff options
author | Daniel Black <daniel@mariadb.org> | 2022-04-14 13:28:51 +1000 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2022-04-14 19:55:26 +1000 |
commit | 66832e3a6474967da7dcf22cd1c5e9368b699ef1 (patch) | |
tree | 8b9591b6653ccc50fc6d5e15b935fc28b871a7a7 /mysql-test/lib | |
parent | 767d8d8335f9d45efb86c77a9efa0b42aff1eb27 (diff) | |
download | mariadb-git-66832e3a6474967da7dcf22cd1c5e9368b699ef1.tar.gz |
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
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/My/CoreDump.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/lib/My/CoreDump.pm b/mysql-test/lib/My/CoreDump.pm index 1ba94223b68..9d1dd27cf88 100644 --- a/mysql-test/lib/My/CoreDump.pm +++ b/mysql-test/lib/My/CoreDump.pm @@ -78,7 +78,10 @@ sub _gdb { my ($tmp, $tmp_name) = tempfile(); print $tmp "bt\n", - "thread apply all bt\n", + "set print sevenbit on\n", + "set print static-members off\n", + "set print frame-arguments all\n", + "thread apply all bt full\n", "quit\n"; close $tmp or die "Error closing $tmp_name: $!"; |