gdb-pt-dump icon indicating copy to clipboard operation
gdb-pt-dump copied to clipboard

broken on 32-bit kernels

Open chrf01 opened this issue 9 months ago • 4 comments

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").

chrf01 avatar May 03 '24 13:05 chrf01

Thanks for the report

Can you please share this info:

qemu version launch command kernel version

martinradev avatar May 03 '24 16:05 martinradev

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

chrf01 avatar May 03 '24 23:05 chrf01

@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.

martinradev avatar May 04 '24 21:05 martinradev

@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'

chrf01 avatar May 05 '24 22:05 chrf01