Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92559 - gdb fails to display Amd64's mmx registers in hex
Summary: gdb fails to display Amd64's mmx registers in hex
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 23:08 UTC by Tres 'RiverRat' Melton
Modified: 2005-12-15 19:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
An ugly fix (gdb-mmx-reg.patch,1.37 KB, patch)
2005-05-13 23:09 UTC, Tres 'RiverRat' Melton
Details | Diff
Display SSE2 registers as builtin_type_vec128i (gdb-6.3-amd64-sse-register-types.diff,1.41 KB, patch)
2005-11-22 13:57 UTC, Danny van Dyk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tres 'RiverRat' Melton 2005-05-13 23:08:48 UTC
The Gnu DeBugger is unable to display the xmm registers as hex.  These registers are shared with the floating point unit and are always displayed as floats.  I searched the web for quite a while for a solution to this problem but to no avail.  I'm writing this report in case someone else is searching.  I even joined the gdb mailing list and asked there, the #gcc channel and no one had an answer.  

I was porting some MMX routines to SSE and they were failing and I couldn't find the bug so I had to do something.  I have created a patch that provides a very inelegant work around but does work.  It applies to the current CVS versions, 6.3, and the build in portage (if you get the source and tweak it).  Basically it provides a #define that can be set to 0/1 for float/hex and then requires a rebuild.  Ugly, I know, but functional.  I hope this helps someone.
Comment 1 Tres 'RiverRat' Melton 2005-05-13 23:09:35 UTC
Created attachment 58851 [details, diff]
An ugly fix
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2005-11-22 13:57:03 UTC
Created attachment 73397 [details, diff]
Display SSE2 registers as builtin_type_vec128i

Mike: Sorry, forgot about the patch yesterday :-/ Here it is know.
Additionally to adding thing patch, could you remove the 5.3 and 6.0 patches in

the ${FILESDIR}? I think they aren't used by any of the versions anymore...
Comment 3 Tres 'RiverRat' Melton 2005-11-25 08:34:00 UTC
Oh yeah, kugelfang's solution is much better from a display point of view.  The
vectors are displayed in a wide variety of formats.  Mine just changed from one
to the other.  I hope you apply this vapier and forward it upstream too.
Comment 4 SpanKY gentoo-dev 2005-11-26 02:02:19 UTC
can someone post links to upstream e-mails/bugreports where this patch has been
proposed ?
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 13:35:50 UTC
Please reopen when someone can point to what Spanky asked for.
Comment 6 SpanKY gentoo-dev 2005-12-15 15:24:06 UTC
no point in closing the bug, ive already added the patch ... i just need some
upstream references
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 17:18:39 UTC
Ah.  I didn't see that you added it and assumed you were waiting for something
from upstream before proceeding.

http://sources.redhat.com/ml/gdb-patches/2005-06/msg00368.html

That seems to be the upstream version of the patch that is in their CVS.  Seems
to be what we were talking about here.
Comment 8 SpanKY gentoo-dev 2005-12-15 19:08:13 UTC
thanks