Skip to contentSkip to conversation

arm: gdb-stub is broken by FEAT_HAFDBS

PATCH Changbin Du via 2 participants 3 messages Nov 23, 2022 – Nov 24, 2022

lore
Share & tools
lore
#0 lore raw

Hello, Richard,
We just noticed the gdb-stub is broken and probably caused by commit 4a3585568 ("target/arm: Plumb debug into S1Translate").

(gdb) target remote :1234
Remote debugging using :1234
0x000000000e1716d0 in ?? ()
=> 0x000000000e1716d0: Cannot access memory at address 0xe1716d0

This issue can be workaround by below change.

target/arm/ptw.c +1 -1
@@ -2879,7 +2879,7 @@ hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
     S1Translate ptw = {
         .in_mmu_idx = arm_mmu_idx(env),
         .in_secure = arm_is_secure(env),
-        .in_debug = true,
+        .in_debug = false,
     };
 

Could you take a look at this? Thank you!

Signature · 2 lines
Cheers,
Changbin Du
#1 lore raw
Quoted 9 lines · Changbin Du

Hello, Richard,
We just noticed the gdb-stub is broken and probably caused by commit 4a3585568 ("target/arm: Plumb debug into S1Translate").

(gdb) target remote :1234
Remote debugging using :1234
0x000000000e1716d0 in ?? ()
=> 0x000000000e1716d0: Cannot access memory at address 0xe1716d0

Hi -- is this fixed by commit 26ba00cf58e9f21b08f (just landed upstream last night) ?

thanks
-- PMM

#2 lore raw
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Changbin Du

Hello, Richard,
We just noticed the gdb-stub is broken and probably caused by commit 4a3585568 ("target/arm: Plumb debug into S1Translate").

Quoted 8 lines
Quoted 4 lines

(gdb) target remote :1234
Remote debugging using :1234
0x000000000e1716d0 in ?? ()
=> 0x000000000e1716d0: Cannot access memory at address 0xe1716d0

Hi -- is this fixed by commit 26ba00cf58e9f21b08f (just landed upstream last night) ?

I pulled the mainline which contains your commit 26ba00cf58e9f21b08f. The problem is fixed.

Thank you very much.

Quoted 2 lines

thanks
-- PMM