GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — scripts/decode_stacktrace.sh: fix build ID and PC source parsing · diffuzor2a9/BPI-Router-Linux@7d9f7d3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • scripts
    • decode_stacktrace.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/decode_stacktrace.sh‎

Copy file name to clipboardExpand all lines: scripts/decode_stacktrace.sh
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,6 @@ handle_line() {
277277
fi
278278
done
279279

280-
if [[ ${words[$last]} =~ ^[0-9a-f]+\] ]]; then
281-
words[$last-1]="${words[$last-1]} ${words[$last]}"
282-
unset words[$last] spaces[$last]
283-
last=$(( $last - 1 ))
284-
fi
285-
286280
# Extract info after the symbol if present. E.g.:
287281
# func_name+0x54/0x80 (P)
288282
# ^^^
@@ -295,6 +289,14 @@ handle_line() {
295289
last=$(( $last - 1 ))
296290
fi
297291

292+
# Join module name with its build id if present, as these were
293+
# split during tokenization (e.g. "[module" and "modbuildid]").
294+
if [[ ${words[$last]} =~ ^[0-9a-f]+\] ]]; then
295+
words[$last-1]="${words[$last-1]} ${words[$last]}"
296+
unset words[$last] spaces[$last]
297+
last=$(( $last - 1 ))
298+
fi
299+
298300
if [[ ${words[$last]} =~ \[([^]]+)\] ]]; then
299301
module=${words[$last]}
300302
# some traces format is "(%pS)", which like "(foo+0x0/0x1 [bar])"

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.