Removed eprintfs before release (#7865)

This commit is contained in:
Srimanta Barua 2017-07-06 03:56:59 +05:30 committed by radare
parent 3f9eae9c60
commit b1996bcffe
2 changed files with 0 additions and 5 deletions

View File

@ -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))) {

View File

@ -33,8 +33,6 @@ 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));
@ -42,8 +40,6 @@ static int debug_gdb_read_at(ut8 *buf, int sz, ut64 addr) {
}
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);