Skip to content

Commit 9a283cc

Browse files
committed
debugger ensure that debugger compiles on linux after changes
1 parent 2bcfa1d commit 9a283cc

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

debugger/src/bptree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static gboolean on_key_pressed(GtkWidget *widget, GdkEvent *event, gpointer user
588588
}
589589

590590
/* free rows list */
591-
g_list_free(rows, gtk_tree_path_free);
591+
g_list_free_full(rows, (GDestroyNotify) gtk_tree_path_free);
592592

593593
return FALSE;
594594
}

debugger/src/dbm_gdb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static void free_commands_queue(GList *queue)
274274
{
275275
/* all commands completed */
276276
queue = g_list_first(queue);
277-
g_list_free_full(queue, free_queue_item);
277+
g_list_free_full(queue, (GDestroyNotify) free_queue_item);
278278
}
279279

280280
/*
@@ -1263,7 +1263,7 @@ static void update_files(void)
12631263
if (files)
12641264
{
12651265
/* free previous list */
1266-
g_list_free_full(files,g_free);
1266+
g_list_free_full(files, g_free);
12671267
files = NULL;
12681268
}
12691269

@@ -1373,7 +1373,7 @@ static void update_autos(void)
13731373
exec_sync_command(command, TRUE, NULL);
13741374
}
13751375

1376-
g_list_free_full(autos, variable_free);
1376+
g_list_free_full(autos, (GDestroyNotify) variable_free);
13771377
autos = NULL;
13781378

13791379
/* add current autos to the list */

debugger/src/debug.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -496,15 +496,15 @@ static gboolean on_watch_key_pressed_callback(GtkWidget *widget, GdkEvent *even
496496
gtk_tree_path_free(path_to_select);
497497

498498
/* free references list */
499-
g_list_free_full(references, gtk_tree_row_reference_free);
499+
g_list_free_full(references, (GDestroyNotify) gtk_tree_row_reference_free);
500500

501501
config_set_debug_changed();
502502
}
503503

504504
gtk_tree_path_free(empty_path);
505505

506506
/* free rows list */
507-
g_list_free_full(rows, (GDestroyNotify)gtk_tree_path_free);
507+
g_list_free_full(rows, (GDestroyNotify) gtk_tree_path_free);
508508

509509
return FALSE;
510510
}
@@ -638,7 +638,7 @@ static void on_debugger_run (void)
638638
if (stack)
639639
{
640640
remove_stack_markers();
641-
g_list_free_full(stack, frame_unref);
641+
g_list_free_full(stack, (GDestroyNotify) frame_unref);
642642
stack = NULL;
643643

644644
stree_remove_frames();
@@ -792,7 +792,7 @@ static void on_debugger_exited (int code)
792792
if (stack)
793793
{
794794
remove_stack_markers();
795-
g_list_free_full(stack, frame_unref);
795+
g_list_free_full(stack, (GDestroyNotify) frame_unref);
796796
stack = NULL;
797797
}
798798

@@ -971,7 +971,7 @@ static void on_select_thread(int thread_id)
971971

972972
if ((success = active_module->set_active_thread(thread_id)))
973973
{
974-
g_list_free_full(stack, (GDestroyNotify)frame_unref);
974+
g_list_free_full(stack, (GDestroyNotify) frame_unref);
975975
stack = active_module->get_stack();
976976

977977
/* update the stack tree */
@@ -1118,7 +1118,7 @@ void debug_destroy(void)
11181118
if (stack)
11191119
{
11201120
remove_stack_markers();
1121-
g_list_free_full(stack, frame_unref);
1121+
g_list_free_full(stack, (GDestroyNotify) frame_unref);
11221122
stack = NULL;
11231123
}
11241124

@@ -1402,7 +1402,7 @@ gchar* debug_get_calltip_for_expression(gchar* expression)
14021402
{
14031403
g_string_append(calltip_str, "\n\t\t........");
14041404
}
1405-
g_list_free_full(children, variable_free);
1405+
g_list_free_full(children, (GDestroyNotify) variable_free);
14061406
}
14071407
calltip = g_string_free(calltip_str, FALSE);
14081408
}

debugger/src/envtree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void delete_selected_rows(void)
166166
gtk_tree_path_free(path);
167167

168168
/* free references list */
169-
g_list_free_full(references, gtk_tree_row_reference_free);
169+
g_list_free_full(references, (GDestroyNotify) gtk_tree_row_reference_free);
170170
}
171171

172172
/* free selection reference */
@@ -175,7 +175,7 @@ static void delete_selected_rows(void)
175175
gtk_tree_path_free(empty_path);
176176

177177
/* free rows list */
178-
g_list_free_full(rows, gtk_tree_path_free);
178+
g_list_free_full(rows, (GDestroyNotify) gtk_tree_path_free);
179179
}
180180

181181
/*

debugger/src/watch_model.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ inline static GList *lookup_variable(GList *vars, gchar *name)
206206
*/
207207
void free_variables_list(GList *vars)
208208
{
209-
g_list_free_full(vars, variable_free);
209+
g_list_free_full(vars, (GDestroyNotify) variable_free);
210210
}
211211

212212
/*

0 commit comments

Comments
 (0)