[Bug gdb/21465] Installing scripts in auto-load scripts-directory

dilyan.palauzov at aegee dot org sourceware-bugzilla@sourceware.org
Sun May 7 00:45:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21465

--- Comment #2 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> ---
AC_CHECK_PROG(gdb, gdb, found)
if test $gdb = found; then
  GDB_AUTO_LOAD_SCRIPTS_DIRECTORY=$(gdb -q -ex "show data-directory" -ex "show
auto-load scripts-directory" -ex quit |sed "1d;2{N;s/\n//g;
s/.*\"\(.*\)\".*:\(.*\)./\1 \2/}; /\$datadir/ {s/\(.*\)
\$datadir\(.*\)/\1\2/;q}; s/.* \(.\)/\1/")
else
  GDB_AUTO_LOAD_SCRIPTS_DIRECTORY='${datadir}/gdb/auto-load'
fi
AC_SUBST(GDB_AUTO_LOAD_SCRIPTS_DIRECTORY)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list