From e6533aa2d924dcd302ff49b5b71d8ac1ea3876e7 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 16 Jun 2017 09:31:33 +0200 Subject: ptxdist: add gdb command Signed-off-by: Michael Olbrich --- bin/ptxdist | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ptxdist b/bin/ptxdist index c8468e31e..85c5a0197 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1006,6 +1006,7 @@ Misc: newpackage create a new package Makefile in a rules dir use 'newpackage help' for a longer description nfsroot run a userspace NFS server and export the nfsroot + gdb run cross gdb with configured sysroot etc. print print the contents of a variable, in the way it is known by "make" list-packages print a list of all selected packages @@ -1948,6 +1949,11 @@ EOF ptxd_make_log export_src EXPORTDIR="${1}" exit ;; + gdb) + check_premake_compiler && + compiler_prefix="$(ptxd_get_ptxconf PTXCONF_COMPILER_PREFIX)" && + exec "${PTXDIST_PLATFORMDIR}/sysroot-host/lib/wrapper/${compiler_prefix}gdb" "${@}" + ;; get|urlcheck) declare -a pkgs check_premake_compiler && -- cgit v1.2.3