summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2017-01-07 13:22:21 -0500
committerAnas Nashif <nashif@linux.intel.com>2017-01-10 20:20:46 +0000
commit6d9ed994aa26f11d543a50fab3bdb4ec94d08dcd (patch)
tree39bbeaa83c301dcebd9e494a4734a4c093b04d01 /scripts
parent7cf2bfe466cd9483d137d48cc78aeec877d4cc6e (diff)
build: use target 'debugserver' for Qemu debugging
Use the existing debugserver target also for Qemu debugging. Qemu should be maintained as one of many emulation/simulations platforms and emulation should be abstracted in the Makefiles and not tied to Qemu. qemugdb will still work, it is however being deprecated. Change-Id: I0cd10fb66debb939b8f7f1304bf2ef4605da6a1d Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/support/qemu.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/support/qemu.sh b/scripts/support/qemu.sh
new file mode 100755
index 000000000..3a0e2fdea
--- /dev/null
+++ b/scripts/support/qemu.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Just a place holder for any custimizations.
+
+do_debugserver() {
+ echo "Detached GDB server"
+}
+
+CMD="$1"
+shift
+
+case "${CMD}" in
+ debugserver)
+ do_debugserver "$@"
+ ;;
+esac