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: wrap nm with UTIL_PREFIX and UTIL_SUFFIX · diffuzor2a9/BPI-Router-Linux@b41838f

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
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fi
3030

3131
READELF=${UTIL_PREFIX}readelf${UTIL_SUFFIX}
3232
ADDR2LINE=${UTIL_PREFIX}addr2line${UTIL_SUFFIX}
33+
NM=${UTIL_PREFIX}nm${UTIL_SUFFIX}
3334

3435
if [[ $1 == "-r" ]] ; then
3536
vmlinux=""
@@ -158,7 +159,7 @@ parse_symbol() {
158159
if [[ $aarray_support == true && "${cache[$module,$name]+isset}" == "isset" ]]; then
159160
local base_addr=${cache[$module,$name]}
160161
else
161-
local base_addr=$(nm "$objfile" 2>/dev/null | awk '$3 == "'$name'" && ($2 == "t" || $2 == "T") {print $1; exit}')
162+
local base_addr=$(${NM} "$objfile" 2>/dev/null | awk '$3 == "'$name'" && ($2 == "t" || $2 == "T") {print $1; exit}')
162163
if [[ $base_addr == "" ]] ; then
163164
# address not found
164165
return

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.