summaryrefslogtreecommitdiffstats
path: root/scripts/wrapper
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-03-02 20:01:27 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-03-02 20:20:26 +0100
commita3efe2888392cffc3d1565ca903c938c419410e3 (patch)
treed6bd8c15e07ac27505bee12e3200e25b8d21b2f6 /scripts/wrapper
parent4369499da69240bf3c995159e7dd9fe6953d2d5c (diff)
downloadptxdist-a3efe2888392cffc3d1565ca903c938c419410e3.tar.gz
ptxdist-a3efe2888392cffc3d1565ca903c938c419410e3.tar.xz
gdb-wrapper: add the nfsroot to the auto-load safe-path
The only useable path for auto-load scripts is right next to the corresponding binary. Anything else is broken when working with a sysroot. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/wrapper')
-rwxr-xr-xscripts/wrapper/gdb-wrapper1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/wrapper/gdb-wrapper b/scripts/wrapper/gdb-wrapper
index 786f2be2c..f87f5e4bb 100755
--- a/scripts/wrapper/gdb-wrapper
+++ b/scripts/wrapper/gdb-wrapper
@@ -7,5 +7,6 @@ unset PTXDIST_CCACHE
wrapper_exec \
--init-eval-command="set debug-file-directory ${PTXDIST_PLATFORMDIR}/root/usr/lib/debug" \
+ --init-eval-command="add-auto-load-safe-path ${PTXDIST_PLATFORMDIR}/root" \
--init-eval-command="set sysroot ${PTXDIST_PLATFORMDIR}/root" \
"$@"