summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-06 14:16:19 -0500
committermidipix <writeonce@midipix.org>2016-03-08 14:21:08 -0500
commitfea1b83bd5e116bdc7e92dab8677a976e3100ba1 (patch)
tree8466ac8f7d7fc46602beb6528256b24568e9bec6
parent173b545076f33b04bdac929c9579fc49b58e1cb2 (diff)
downloadslibtool-fea1b83bd5e116bdc7e92dab8677a976e3100ba1.tar.bz2
slibtool-fea1b83bd5e116bdc7e92dab8677a976e3100ba1.tar.xz
driver: added context initialization for --debug.
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/driver/slbt_driver_ctx.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index a1fd6b2..fa808b9 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -36,6 +36,7 @@ extern "C" {
#define SLBT_DRIVER_VERSION 0x0010
#define SLBT_DRIVER_DRY_RUN 0x0020
#define SLBT_DRIVER_CONFIG 0x0040
+#define SLBT_DRIVER_DEBUG 0x0080
/* execution modes */
enum slbt_mode {
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index f75e2b4..16f9687 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -167,6 +167,9 @@ int slbt_get_driver_ctx(
cctx.drvflags |= SLBT_DRIVER_CONFIG;
break;
+ case TAG_DEBUG:
+ cctx.drvflags |= SLBT_DRIVER_DEBUG;
+ break;
}
} else
nunits++;