Skip to content

Commit

Permalink
Removed eprintfs before release (radareorg#7865)
Browse files Browse the repository at this point in the history
  • Loading branch information
SrimantaBarua authored and radare committed Jul 5, 2017
1 parent 3f9eae9 commit b1996bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion libr/debug/p/debug_gdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ static RList *r_debug_gdb_map_get(RDebug* dbg) { //TODO
// If /proc/%d/maps is not valid for gdbserver, we return NULL, as of now
snprintf (path, sizeof (path) - 1, "/proc/%d/maps", desc->pid);
if (gdbr_open_file (desc, path, O_RDONLY, S_IRUSR | S_IWUSR | S_IXUSR) < 0) {
eprintf ("%s: Error opening file: %s\n", __func__, path);
return NULL;
}
if (!(buf = malloc (buflen))) {
Expand Down
4 changes: 0 additions & 4 deletions libr/io/p/io_gdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,13 @@ static int debug_gdb_read_at(ut8 *buf, int sz, ut64 addr) {
last = sz % size_max;
for (x = 0; x < packets; x++) {
if (gdbr_read_memory (desc, addr + (x * size_max), size_max) < 0) {
eprintf ("%s: Error reading gdbserver memory (%d bytes at 0x%"PFMT64x")\n",
__func__, size_max, addr + (x * size_max));
return ret;
}
memcpy ((buf + (x * size_max)), desc->data + (x * size_max), R_MIN (sz, size_max));
ret += desc->data_len;
}
if (last) {
if (gdbr_read_memory (desc, addr + x * size_max, last) < 0) {
eprintf ("%s: Error reading gdbserver memory (%d bytes at 0x%"PFMT64x")\n",
__func__, last, addr + (x * size_max));
return ret;
}
memcpy ((buf + x * size_max), desc->data + (x * size_max), last);
Expand Down

0 comments on commit b1996bc

Please sign in to comment.