Limit the address range available to Eclipse / GDB

I use Eclipse to debug an embedded processor, which has a painful quirk: when it tries to access a memory area that is not implemented, the processor hangs.

Sometimes when debugging, the debugger tries to execute a bad address and the CPU freezes. Is there a way to tell GDB that it should never try to read memory, say, from 0x40020000 to 0x4fffffff?

+3
source share
1 answer

Perhaps setting the Attributes of the memory area will help.

+3
source

Source: https://habr.com/ru/post/1773329/


All Articles