qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/arm: Fix debugging of ARMv8M Secure code


From: Peter Maydell
Subject: Re: [PATCH] target/arm: Fix debugging of ARMv8M Secure code
Date: Tue, 11 Apr 2023 16:24:19 +0100

On Mon, 10 Apr 2023 at 15:38, Bartell, Paul <pbartell@amazon.com> wrote:
>
> You can reproduce the problem by running gdb against an ARMv8M target running 
> secure mode code (the default).
>
> Running qemu with the following arguments : qemu-system-arm -machine 
> mps2-an505 -m 16M -cpu cortex-m33 -nographic -semihosting -monitor null 
> --semihosting-config enable=on,target=native -d guest_errors -kernel 
> /path/to/binary.elf
>
> With the following .gdbinit file:
> target extended-remote :1234
> compare-sections
>
> Upon startup, every symbol in the elf file reports the following error:
>
> Section .text, range 0x10000000 -- 0x10009298: MIS-MATCHED!
> Section .text.main, range 0x10009298 -- 0x10009300: MIS-MATCHED!
> Section .text.prvQueueSendTask, range 0x10009300 -- 0x10009338: MIS-MATCHED!
>
> Attempting to debug results in errors constantly (unable to read or write 
> memory at all).
>
> init_data_sections () at /project/Demo/ARM_MPS/startup.c:95
> 95      {
> (gdb) info locals
> pCopyTable = <error reading variable pCopyTable (Cannot access memory at 
> address 0x381fffec)>
> dataIndex = <error reading variable dataIndex (Cannot access memory at 
> address 0x381fffe8)>
>
> Does that clarify my report sufficiently?

Could you (a) file a bug and (b) attach a sample test executable
that demonstrates the problem, please?

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]