| 138 | |
| 139 | template <typename T> |
| 140 | void readat_cmd_handler(proc_rw<T> *process_rw, ADDR address) { |
| 141 | |
| 142 | // reset errno |
| 143 | errno = 0; |
| 144 | // read |
| 145 | T read_val = process_rw->retrieve_val((byte *)address); |
| 146 | |
| 147 | if (errno != 0) |
| 148 | frontend_print("error while reading: %s\n", strerror(errno)); |
| 149 | else |
| 150 | frontend_print("%s\n", std::to_string(read_val).c_str()); |
| 151 | } |
| 152 | |
| 153 | template <typename T> |
| 154 | void read_arr_cmd_handler(proc_rw<T> *process_rw, ADDR address, |
nothing calls this directly
no test coverage detected