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 35:21a4be098304
prev33:e74b5bc9d14b
next43:0cf3e339cc59
author nkeynes
date Mon Dec 26 03:54:55 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Remove modules.h - move definitions into dream.h
Add source string to output list (taken from module name)
ARM Work in progress
file annotate diff log raw
1.1 --- a/src/gui/debug_win.c Mon Dec 26 03:10:41 2005 +0000
1.2 +++ b/src/gui/debug_win.c Mon Dec 26 03:54:55 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: debug_win.c,v 1.11 2005-12-26 03:10:41 nkeynes Exp $
1.6 + * $Id: debug_win.c,v 1.12 2005-12-26 03:54:55 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 @@ -243,10 +243,10 @@
1.11 }
1.12
1.13
1.14 -void emit( void *ptr, int level, int source, const char *msg, ... )
1.15 +void emit( void *ptr, int level, const gchar *source, const char *msg, ... )
1.16 {
1.17 char buf[20], addr[10] = "", *p;
1.18 - char *arr[3] = {buf, addr};
1.19 + const char *arr[4] = {buf, source, addr};
1.20 int posn;
1.21 time_t tm = time(NULL);
1.22 va_list ap;
1.23 @@ -258,9 +258,9 @@
1.24 va_start(ap, msg);
1.25 p = g_strdup_vprintf( msg, ap );
1.26 strftime( buf, sizeof(buf), "%H:%M:%S", localtime(&tm) );
1.27 - if( source != -1 )
1.28 - sprintf( addr, "%08X", *data->cpu->pc );
1.29 - arr[2] = p;
1.30 + // if( source == NULL )
1.31 + sprintf( addr, "%08X", *data->cpu->pc );
1.32 + arr[3] = p;
1.33 posn = gtk_clist_append(data->msgs_list, arr);
1.34 free(p);
1.35 va_end(ap);
.