Mercurial > repos > blastem
comparison gdb_remote.c @ 1245:42fb3ee1e92c
Fix direct usage of read rather than GDB_READ in gdb_remote.c
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Feb 2017 23:20:11 -0800 |
parents | 75ba222877f7 |
children | 85a90964b557 |
comparison
equal
deleted
inserted
replaced
1244:0a34e31c4fd0 | 1245:42fb3ee1e92c |
---|---|
515 } else if (partial) { | 515 } else if (partial) { |
516 if (curbuf != buf) { | 516 if (curbuf != buf) { |
517 memmove(curbuf, buf, end-curbuf); | 517 memmove(curbuf, buf, end-curbuf); |
518 end -= curbuf - buf; | 518 end -= curbuf - buf; |
519 } | 519 } |
520 int numread = read(GDB_IN_FD, end, bufsize - (end-buf)); | 520 int numread = GDB_READ(GDB_IN_FD, end, bufsize - (end-buf)); |
521 end += numread; | 521 end += numread; |
522 curbuf = buf; | 522 curbuf = buf; |
523 } | 523 } |
524 for (; curbuf < end; curbuf++) | 524 for (; curbuf < end; curbuf++) |
525 { | 525 { |