diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-06-16 09:31:33 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-06-21 09:34:50 +0200 |
commit | e6533aa2d924dcd302ff49b5b71d8ac1ea3876e7 (patch) | |
tree | 2560b063d3b19b51458ebd8c0636db37997df8a4 | |
parent | 1c6ab56f2f0b0b21b10157a8c84215d1b0fbd839 (diff) | |
download | ptxdist-e6533aa2d924dcd302ff49b5b71d8ac1ea3876e7.tar.gz ptxdist-e6533aa2d924dcd302ff49b5b71d8ac1ea3876e7.tar.xz |
ptxdist: add gdb command
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-x | bin/ptxdist | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index c8468e31e..85c5a0197 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1006,6 +1006,7 @@ Misc: newpackage <type> 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 <var> 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 && |