Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* printing MMX variables
@ 2004-07-11 13:12 Shadi el-Hajj
  0 siblings, 0 replies; 3+ messages in thread
From: Shadi el-Hajj @ 2004-07-11 13:12 UTC (permalink / raw)
  To: gdb

hello,

a thousand apologies if this is way too obvious and/or has been asked 
many times ( i just can't find in the archives ). i am trying to debug 
some mmx code in which i have declared:
__m64 foovector;
i use foovector to store 8 8bit integers(chars). now when i ask for:
print foovector
i get:  { 1073836052, 1}. obviously gdb is interpreting my chars as 
32bit ints. how can i tell him i just want chars ? i tried a thousand 
casts like (v8qi etc...) but gdb answers "No symbol in current 
context".
i am using version 6.1 on linux-x86(debian testing)

thanks in advance,
shadi


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: printing MMX variables
@ 2004-07-11 18:39 Michael Elizabeth Chastain
  2004-07-11 22:08 ` Shadi el-Hajj
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Elizabeth Chastain @ 2004-07-11 18:39 UTC (permalink / raw)
  To: gdb, shadi

Try the '/c' modifier:

  print /c foovector
  x /20c &foovector

Michael C


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

end of thread, other threads:[~2004-07-11 22:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-11 13:12 printing MMX variables Shadi el-Hajj
2004-07-11 18:39 Michael Elizabeth Chastain
2004-07-11 22:08 ` Shadi el-Hajj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox