1112,11 → 1112,11 |
/** Write directly into a page, bypassing area flags. |
* |
* This allows a debugger to write into a page that is mapped read-only |
* (such as the text segment). Naturally, this is only possible if the |
* correspoinding area is not shared and anonymous. |
* (such as the text segment). Naturally, this can only be done if the |
* correspoinding area is private (not shared) and anonymous. |
* |
* FIXME: doesn't take into account that it isn't a good idea to write |
* into the frame if the area is shared or isn't anonymous |
* If this is not the case, this function calls as_area_make_writeable() |
* first. |
*/ |
static int debug_write_inside_page(uintptr_t va, void *data, size_t n) |
{ |