Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some small socket debugger fixes #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ void handle_set_bytes(int address, char *bytes_data) {
while (sscanf(bytes_data, "%02x", &byte) == 1) {
printf("$%02x <---- BYTE @ $%06X\n", byte, address );
bytes_data += 2;
address++;
set_byte_at_address(address, byte & 0xFF);
address++;
}
}

Expand Down Expand Up @@ -1027,7 +1027,7 @@ void debug_server_poll() {
/* failure occurs, we will close the */
/* connection. */
/*****************************************************/
rc = recv(fds[i].fd, buffer, sizeof(buffer), 0);
rc = recv(fds[i].fd, buffer, sizeof(buffer), MSG_DONTWAIT);
if (rc < 0) {
if (errno != EWOULDBLOCK) {
perror("recv() failed");
Expand Down Expand Up @@ -1313,7 +1313,7 @@ int do_dis_json(char *buf, word32 kpc, int accsize, int xsize, int op_provided,
sprintf(buf_disasm,"%s [$%0*x],Y",out,args*2,val);
break;

case IMMED:
case IMMEDIATE:
sprintf(buf_disasm,"%s #$%0*x",out, args*2, val);
break;

Expand Down