public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* GDB | DWARF expression | Extracting a range of bits from an 'xmm' register
@ 2021-05-21  8:57 vaibhav kurhe
  2021-05-21 14:03 ` Andrew Burgess
  0 siblings, 1 reply; 6+ messages in thread
From: vaibhav kurhe @ 2021-05-21  8:57 UTC (permalink / raw)
  To: gdb

Hello all,
For a use case, I am trying to build a DWARF expression which represents
the value of an arbitrary range of bits (e.g. 96-127 bits) in an *128-bit
xmm register* to be used as a *location attribute value* for a variable DIE.
I am using GDB to consume the debug info and test it.

Following is the expression I started with to test out a shift operation on
an 128-bit xmm0 register using Typed DWARF stack :-

*"DW_OP_GNU_regval_type: 21 (xmm0) <0x30>; DW_OP_GNU_const_type: <0x30>  16
byte block: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; DW_OP_shl;
DW_OP_stack_value"*
But, while testing it in GDB, I got an error :-
*"That operation is not available on integers of more than 8 bytes."*

Could you please provide any suggestions/pointers on this? Am I missing
something?

Please let me know, if you need any additional info.

Thanks & Regards,
Vaibhav

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-24 10:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21  8:57 GDB | DWARF expression | Extracting a range of bits from an 'xmm' register vaibhav kurhe
2021-05-21 14:03 ` Andrew Burgess
2021-05-21 16:02   ` Zaric, Zoran (Zare)
2021-05-21 21:09     ` vaibhav kurhe
2021-05-24 10:00       ` Zaric, Zoran (Zare)
2021-05-21 20:37   ` vaibhav kurhe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).