VarianceOfOne
VarianceOfOne

Reputation: 21

enable avx512 zmm registers in gdb

I'm running mingw64 gdb on windows and I'm trying to debug some c and fortran mixed program that has inline asm. The problem I'm m having is that zmm registers are not available to view. I read thru the docs for gdb and it says features have to be enabled for your architecture. I don't have the slightest idea how except that gdb identifies the cpu as architecture of i386 x86-64.

How do I enable vector registers specifically avx512 zmm registers?

I tried using lldb; same problem.

Compiling gdb manually on windows using msys2 is more than I'm capable of.

Im using an intel i7 1185g7. It supports avx512 and many extensions. The inline asm executes fine. I'm using mingw64 gcc and gfortran to compile.

I've tried in gdb:

gdb always returns "invalid register ...".

I think the architecture is right:

(gdb) show architecture

The target architecture is set to "auto" (currently "i386:x86-64").

There is also an option for intel:

(gdb) set architecture i386:x86-64:intel

The target architecture is set to "i386:x86-64:intel".

It doesn't make a difference. I can see the xmm registers fine but not the zmm registers.

Upvotes: 2

Views: 104

Answers (0)

Related Questions