Skip to content

Commit

Permalink
Add showdump shell
Browse files Browse the repository at this point in the history
  • Loading branch information
flyicegood committed Jun 25, 2015
1 parent f65ed26 commit 88dde9f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Binary file added Tool/linux-google-breakpad/dump_syms
Binary file not shown.
Binary file added Tool/linux-google-breakpad/minidump_stackwalk
Binary file not shown.
7 changes: 7 additions & 0 deletions Tool/linux-google-breakpad/readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
1. copy dump_syms & minidump_stackwalk to exe directory
2. $ ./dump_syms ./test > test.sym
3. $ head -n1 test.sym
MODULE Linux x86_64 6EDC6ACDB282125843FD59DA9C81BD830 test
4. $ mkdir -p ./symbols/test/6EDC6ACDB282125843FD59DA9C81BD830
5. $ mv test.sym ./symbols/test/6EDC6ACDB282125843FD59DA9C81BD830
6. $ ./minidump_stackwalk minidump.dmp ./symbols
19 changes: 19 additions & 0 deletions Tool/linux-google-breakpad/showdump.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ExeName="NFServer_d"
DumpName="36929c83-a6ba-ad53-59e61da1-xxxxxx.dmp"

echo "Server: ${ExeName}, DumpName:${DumpName}"

./dump_syms ./${ExeName} > ${ExeName}.sym
#head -n1 ${ExeName}.sym | awk '{print $4}' > $DumpNO

DumpNO=`head -n1 ${ExeName}.sym | awk '{print $4}'`

rm ./symbols -rf

mkdir -p ./symbols/${ExeName}/${DumpNO}

mv ${ExeName}.sym ./symbols/${ExeName}/${DumpNO}

./minidump_stackwalk ${DumpName} ./symbols

echo "Server: ${ExeName}, DumpName:${DumpName}, DumpNo:${DumpNO}"

0 comments on commit 88dde9f

Please sign in to comment.