donate-cpu-server.py: improved function compression in stack trace overview of crash report (#3513)
This commit is contained in:
parent
22a684d9e8
commit
c49d246303
|
@ -25,7 +25,7 @@ import html as html_lib
|
|||
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
|
||||
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
|
||||
# changes)
|
||||
SERVER_VERSION = "1.3.19"
|
||||
SERVER_VERSION = "1.3.20"
|
||||
|
||||
OLD_VERSION = '2.6'
|
||||
|
||||
|
@ -203,16 +203,19 @@ def crashReport(results_path: str) -> str:
|
|||
# #0 0x00007ffff71cbf67 in raise () from /lib64/libc.so.6
|
||||
m = re.search(r'(?P<number>#\d+) .* in (?P<function>.+)\(.*\) from (?P<binary>.*)$', l)
|
||||
if m:
|
||||
#print('0 - {} - {} - {}'.format(m.group('number'), m.group('function'), m.group('binary')))
|
||||
stack_trace.append(m.group('number') + ' ' + m.group('function') + '(...) from ' + m.group('binary'))
|
||||
continue
|
||||
# #11 0x00000000006f2414 in valueFlowNumber (tokenlist=tokenlist@entry=0x7fffffffc610) at build/valueflow.cpp:2503
|
||||
m = re.search(r'(?P<number>#\d+) .* in (?P<function>.+)\(.*\) at (?P<location>.*)$', l)
|
||||
m = re.search(r'(?P<number>#\d+) .* in (?P<function>.+) \(.*\) at (?P<location>.*)$', l)
|
||||
if m:
|
||||
#print('1 - {} - {} - {}'.format(m.group('number'), m.group('function'), m.group('location')))
|
||||
stack_trace.append(m.group('number') + ' ' + m.group('function') + '(...) at ' + m.group('location'))
|
||||
continue
|
||||
# #18 ForwardTraversal::updateRecursive (this=0x7fffffffb3c0, tok=0x14668a0) at build/forwardanalyzer.cpp:415
|
||||
m = re.search(r'(?P<number>#\d+) (?P<function>.+)\(.*\) at (?P<location>.*)$', l)
|
||||
if m:
|
||||
#print('2 - {} - {} - {}'.format(m.group('number'), m.group('function'), m.group('location')))
|
||||
stack_trace.append(m.group('number') + ' ' + m.group('function') + '(...) at ' + m.group('location'))
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in New Issue