[gnome-builder/wip/chergert/bug1: 10/35] debugger: fix precondition checks
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/bug1: 10/35] debugger: fix precondition checks
- Date: Tue, 29 Aug 2017 05:18:51 +0000 (UTC)
commit e26305b9c4ab1cfdfaf4f5d26036b6a2cf56335b
Author: Christian Hergert <chergert redhat com>
Date: Sat Aug 26 20:04:27 2017 -0700
debugger: fix precondition checks
libide/debugger/ide-debugger-breakpoints-view.c | 1 +
libide/debugger/ide-debugger-threads-view.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/debugger/ide-debugger-breakpoints-view.c b/libide/debugger/ide-debugger-breakpoints-view.c
index 965cc9d..3959a52 100644
--- a/libide/debugger/ide-debugger-breakpoints-view.c
+++ b/libide/debugger/ide-debugger-breakpoints-view.c
@@ -544,6 +544,7 @@ ide_debugger_breakpoints_view_set_debugger (IdeDebuggerBreakpointsView *self,
IdeDebugger *debugger)
{
g_return_if_fail (IDE_IS_DEBUGGER_BREAKPOINTS_VIEW (self));
+ g_return_if_fail (!debugger || IDE_IS_DEBUGGER (debugger));
if (self->debugger_signals != NULL)
{
diff --git a/libide/debugger/ide-debugger-threads-view.c b/libide/debugger/ide-debugger-threads-view.c
index ab6a64c..e3647d0 100644
--- a/libide/debugger/ide-debugger-threads-view.c
+++ b/libide/debugger/ide-debugger-threads-view.c
@@ -814,7 +814,7 @@ ide_debugger_threads_view_set_debugger (IdeDebuggerThreadsView *self,
IdeDebugger *debugger)
{
g_return_if_fail (IDE_IS_DEBUGGER_THREADS_VIEW (self));
- g_return_if_fail (IDE_IS_DEBUGGER (debugger));
+ g_return_if_fail (!debugger || IDE_IS_DEBUGGER (debugger));
dzl_signal_group_set_target (self->debugger_signals, debugger);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]