Search
lxdream.org :: lxdream/src/gdbserver.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdbserver.c
changeset 1077:136fc24d17ef
prev1071:182cfe43c09e
next1081:ef31ae97bb8b
author nkeynes
date Wed Oct 07 17:53:56 2009 +1000 (12 years ago)
permissions -rw-r--r--
last change Create a host attachment for the SCIF serial port. By default, uses /dev/console
Add general fd listening to netutil, and rename to ioutil
Add SCIF update on port read/write - fixes KOS timing problems but needs to
be redone properly.
file annotate diff log raw
1.1 --- a/src/gdbserver.c Tue Jul 21 20:21:52 2009 +1000
1.2 +++ b/src/gdbserver.c Wed Oct 07 17:53:56 2009 +1000
1.3 @@ -27,7 +27,7 @@
1.4 #include <arpa/inet.h>
1.5 #include "lxdream.h"
1.6 #include "dreamcast.h"
1.7 -#include "netutil.h"
1.8 +#include "ioutil.h"
1.9 #include "cpu.h"
1.10
1.11 #define DEFAULT_BUFFER_SIZE 1024
1.12 @@ -495,7 +495,7 @@
1.13 chan_serv->buf = malloc(1024);
1.14 chan_serv->buf_size = 1024;
1.15 chan_serv->buf_posn = 0;
1.16 - net_register_tcp_listener( conn_fd, gdb_server_data_callback, chan_serv, gdb_server_free );
1.17 + io_register_tcp_listener( conn_fd, gdb_server_data_callback, chan_serv, gdb_server_free );
1.18 INFO( "GDB connected from %s", chan_serv->peer_name );
1.19 }
1.20 return TRUE;
1.21 @@ -514,7 +514,7 @@
1.22 */
1.23 gboolean gdb_init_server( const char *interface, int port, cpu_desc_t cpu, gboolean mmu )
1.24 {
1.25 - int fd = net_create_server_socket( interface, port );
1.26 + int fd = io_create_server_socket( interface, port );
1.27 if( fd == -1 ) {
1.28 return FALSE;
1.29 }
1.30 @@ -523,7 +523,7 @@
1.31 server->cpu = cpu;
1.32 server->mmu = mmu;
1.33 server->fd = fd;
1.34 - gboolean result = net_register_tcp_listener( fd, gdb_server_connect_callback, server, gdb_server_free );
1.35 + gboolean result = io_register_tcp_listener( fd, gdb_server_connect_callback, server, gdb_server_free );
1.36 INFO( "%s GDB server running on port %d", cpu->name, port );
1.37 return result;
1.38 }
.