Commit 8f9c3a55 authored by Robert Schmidt's avatar Robert Schmidt

Debugging of images with core dumps: improvements

- Four mounting of files, we need the absolute path. Even if the script
  gets relative paths, realpath will give the absolute path
- Correctly recognize and handle gNB images with AW2S support
parent 4340277b
......@@ -10,9 +10,10 @@ die() {
exit 1
}
# for mounting into docker, need absolute path -> realpath
IMAGE=$1
COREDUMP=$2
SOURCES=$3
COREDUMP=$(realpath $2)
SOURCES=$(realpath $3)
set -x
......@@ -32,6 +33,9 @@ docker image inspect $IMAGE > /dev/null || exit 1
if [ $(grep "oai-gnb:" <<< $IMAGE) ] || [ $(grep "oai-gnb-aerial:" <<< $IMAGE) ]; then
EXEC=bin/nr-softmodem
TYPEPATH=oai-gnb
elif [ $(grep "oai-gnb-aw2s:" <<< $IMAGE) ]; then
EXEC=bin/nr-softmodem
TYPEPATH=oai-gnb-aw2s
elif [ $(grep "oai-nr-ue:" <<< $IMAGE) ]; then
EXEC=bin/nr-uesoftmodem
TYPEPATH=oai-nr-ue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment