martinradev / gdb-pt-dump

MIT License
128 stars 26 forks source link

broken on 32-bit kernels #33

Open chrf01 opened 2 months ago

chrf01 commented 2 months ago

broken on 32-bit x86 kernel

pwndbg> pt
Cannot get qemu-system pid Unknown arch. Message: The target architecture is set to "auto" (currently "i386").
martinradev commented 2 months ago

Thanks for the report

Can you please share this info:

qemu version launch command kernel version

chrf01 commented 2 months ago

Oh yeah sorry:

kernel version: 4.4.195 qemu version: 9.0.0 Launch command: qemu-system-i386 -kernel images/vmlinuz-4.4.195-i386 -initrd build/initramfs-x86.cpio.gz -nographic -append "console=ttyS0" -enable-kvm -s -S

but i guess it should fail on all kernels running with qemu-system-i386 because we dont check for "i386" in show architecture command

martinradev commented 2 months ago

@chrf01

Could you please check if https://github.com/martinradev/gdb-pt-dump/pull/34 works for you?

I tried it locally with an x86 kolibri image.

chrf01 commented 2 months ago

@chrf01

Could you please check if #34 works for you?

I tried it locally with an x86 kolibri image.

fails at PML4_Entry.__init__() now. TypeError: PML4_Entry.__init__() missing 1 required positional argument: 'index'