mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Run QEMU with the possibility to attach gdb.
This commit is contained in:
parent
985074c790
commit
de38e63d3e
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
|||
// FIXME: Some places pass strlen(arg1) as arg2. This doesn't seem entirely perfect..
|
||||
#define VALIDATE_USER_READ_WITH_RETURN_TYPE(b, s, ret_type) \
|
||||
do { \
|
||||
LinearAddress laddr((dword)(b)); \
|
||||
LinearAddress laddr(reinterpret_cast<dword>(b)); \
|
||||
if (!validate_user_read(laddr) || !validate_user_read(laddr.offset((s) - 1))) { \
|
||||
dbgprintf("Bad read address passed to syscall: %p +%u\n", laddr.get(), (s)); \
|
||||
return (ret_type)-EFAULT; \
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
#define VALIDATE_USER_WRITE(b, s) \
|
||||
do { \
|
||||
LinearAddress laddr((dword)(b)); \
|
||||
LinearAddress laddr(reinterpret_cast<dword>(b)); \
|
||||
if (!validate_user_write(laddr) || !validate_user_write(laddr.offset((s) - 1))) { \
|
||||
dbgprintf("Bad write address passed to syscall: %p +%u\n", laddr.get(), (s)); \
|
||||
return -EFAULT; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue