mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
Run QEMU with the possibility to attach gdb.
This commit is contained in:
parent
985074c790
commit
de38e63d3e
Notes:
sideshowbarker
2024-07-19 16:11:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/de38e63d3ef
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; \
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
if [ "$1" = "b" ]; then
|
||||
bochs -q -f .bochsrc
|
||||
else
|
||||
qemu-system-i386 -m 32 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents #$@
|
||||
qemu-system-i386 -s -m 32 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents #$@
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue