Search
lxdream.org :: lxdream/src/gui/debug_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/debug_win.c
changeset 429:e581b90c3fb3
prev415:5e57f29bfd4d
next435:7a5d71e8560b
author nkeynes
date Mon Oct 08 11:52:13 2007 +0000 (15 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/gui/debug_win.c Wed Oct 03 09:32:09 2007 +0000
1.2 +++ b/src/gui/debug_win.c Mon Oct 08 11:52:13 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: debug_win.c,v 1.21 2007-10-03 09:32:09 nkeynes Exp $
1.6 + * $Id: debug_win.c,v 1.22 2007-10-08 11:48:56 nkeynes Exp $
1.7 * This file is responsible for the main debugger gui frame.
1.8 *
1.9 * Copyright (c) 2005 Nathan Keynes.
1.10 @@ -24,6 +24,7 @@
1.11 #include "mem.h"
1.12 #include "cpu.h"
1.13 #include "display.h"
1.14 +#include "pvr2/pvr2.h"
1.15
1.16 GdkColor *msg_colors[] = { &clrError, &clrError, &clrWarn, &clrNormal,
1.17 &clrDebug, &clrTrace };
1.18 @@ -36,7 +37,7 @@
1.19 int disasm_from;
1.20 int disasm_to;
1.21 int disasm_pc;
1.22 - struct cpu_desc_struct *cpu;
1.23 + const struct cpu_desc_struct *cpu;
1.24 const cpu_desc_t *cpu_list;
1.25 GtkCList *msgs_list;
1.26 GtkCList *regs_list;
1.27 @@ -287,7 +288,7 @@
1.28 void emit( void *ptr, int level, const gchar *source, const char *msg, ... )
1.29 {
1.30 char buf[20], addr[10] = "", *p;
1.31 - const char *arr[4] = {buf, source, addr};
1.32 + const gchar *arr[4] = {buf, source, addr};
1.33 int posn;
1.34 time_t tm = time(NULL);
1.35 va_list ap;
1.36 @@ -314,7 +315,7 @@
1.37 p = g_strdup_vprintf( msg, ap );
1.38 sprintf( addr, "%08X", *data->cpu->pc );
1.39 arr[3] = p;
1.40 - posn = gtk_clist_append(data->msgs_list, arr);
1.41 + posn = gtk_clist_append(data->msgs_list, (gchar **)arr);
1.42 free(p);
1.43 va_end(ap);
1.44
.