Read about our upcoming Code of Conduct on this issue

Commit e9b5fad4 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

GDB scripts: workaround to prevent GDB from crashing on 5D

It appears to be a bug in GDB, e.g. trying to access guest memory when setting a convenience variable.
Reprogramming the MPU to allow memory access where GDB expects it appears to do the trick for now.

--HG--
branch : qemu
parent 96b787a2697a
......@@ -39,4 +39,18 @@ register_func_old_log
b *0xFFB22574
CreateStateObject_log
b *0xFFB4066C
commands
silent
if $r3 == 0xF800002D
KYLW
printf "Workaround to prevent GDB from crashing...\n"
# before: F8000000 - F87FFFFF
# after: E0000000 - FFFFFFFF (background region for the entire ROM area)
set $r3 = 0xE0000039
KRESET
end
c
end
cont
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment