]> git.sur5r.net Git - openocd/blobdiff - src/openocd.c
target: fix display halt message logic
[openocd] / src / openocd.c
index 1874530cb2fc4d053052835e19febf591c1599e2..d5d7ebe8768211c97a81caa6320520cf73c65ee6 100644 (file)
@@ -87,13 +87,13 @@ static int log_target_callback_event_handler(struct target *target,
 {
        switch (event) {
                case TARGET_EVENT_GDB_START:
-                       target->display = 0;
+                       target->verbose_halt_msg = false;
                        break;
                case TARGET_EVENT_GDB_END:
-                       target->display = 1;
+                       target->verbose_halt_msg = true;
                        break;
                case TARGET_EVENT_HALTED:
-                       if (target->display) {
+                       if (target->verbose_halt_msg) {
                                /* do not display information when debugger caused the halt */
                                target_arch_state(target);
                        }