[Feature] Change for re-enable minidump (#8526)
This commit is contained in:
parent
c35e1aabe6
commit
6b0bc60863
|
|
@ -403,9 +403,6 @@ if (WITH_GCOV)
|
|||
set(CXX_GCC_FLAGS "${CXX_GCC_FLAGS} -fprofile-arcs -ftest-coverage")
|
||||
endif()
|
||||
|
||||
# to compresss debug section. https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html
|
||||
set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -gz=zlib")
|
||||
|
||||
# For CMAKE_BUILD_TYPE=Debug
|
||||
# -ggdb: Enable gdb debugging
|
||||
# Debug information is stored as dwarf2 to be as compatible as possible
|
||||
|
|
|
|||
|
|
@ -10,10 +10,15 @@ curdir=`cd "$curdir"; pwd`
|
|||
starrocks_home=$(dirname $(dirname $curdir))
|
||||
|
||||
# generate symbol's file in Breakpad's own format.
|
||||
$(dirname $curdir)/src/breakpad-main/src/tools/linux/dump_syms/dump_syms $starrocks_home/output/be/lib/starrocks_be > $starrocks_home/output/be/starrocks_be.sym
|
||||
$(dirname $curdir)/installed/bin/dump_syms $starrocks_home/output/be/lib/starrocks_be > $starrocks_home/output/be/starrocks_be.sym
|
||||
|
||||
((starrocks_be_size_original=`ls -l output/be/lib/starrocks_be | awk '{print $5}'` / (1024*1024)))
|
||||
# remove debugging infos
|
||||
strip $starrocks_home/output/be/lib/starrocks_be
|
||||
((starrocks_be_size_simplify=`ls -l output/be/lib/starrocks_be | awk '{print $5}'` / (1024*1024)))
|
||||
|
||||
# echo size reduction
|
||||
echo "starrocks_be'size ("$starrocks_be_size_original"mb) reduced to ("$starrocks_be_size_simplify"mb)"
|
||||
|
||||
# remove unneed old symbols
|
||||
rm -rf $starrocks_home/output/be/symbols
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ curdir=`cd "$curdir"; pwd`
|
|||
# minidump_stackwalk is generated by breakpad
|
||||
# $2: The path to the dmp file
|
||||
# $1: The path to the sym file(in breakpad's format)
|
||||
$(dirname $curdir)/src/breakpad-main/src/processor/minidump_stackwalk $2 $1 2>&1 > $readeablestackfile/dmp_stackwalk.txt
|
||||
$(dirname $curdir)/installed/bin/minidump_stackwalk $2 $1 2>&1 > $readeablestackfile/dmp_stackwalk.txt
|
||||
|
||||
# de file's directory.
|
||||
echo "readeable stack in " "$readeablestackfile/dmp_stackwalk.txt"
|
||||
|
|
|
|||
Loading…
Reference in New Issue