* [PATCH] fix debug info register numbering on x86 vxworks
@ 2007-08-03 17:07 Nathan Froyd
2007-08-31 4:23 ` Mark Mitchell
0 siblings, 1 reply; 2+ messages in thread
From: Nathan Froyd @ 2007-08-03 17:07 UTC (permalink / raw)
To: gcc-patches; +Cc: nathan
[-- Attachment #1: Type: text/plain, Size: 441 bytes --]
VxWorks debug info on x86 uses the SVR4 register numbering scheme. This
patch makes that a reality.
Bootstrapped and regtested on i586-wrs-vxworks. I also visually
inspected the readelf -wf output of -g compiled object files to ensure
the register numbering is as expected. OK to commit?
:ADDPATCH vxworks:
-Nathan
2007-08-03 Nathan Froyd <froydnj@codesourcery.com>
gcc/
* config/i386/vx-common.h (DBX_REGISTER_NUMBER): Define.
[-- Attachment #2: regnums.patch --]
[-- Type: text/plain, Size: 471 bytes --]
Index: gcc/config/i386/vx-common.h
===================================================================
--- gcc/config/i386/vx-common.h (revision 178052)
+++ gcc/config/i386/vx-common.h (working copy)
@@ -25,3 +25,8 @@ Boston, MA 02110-1301, USA. */
#undef RETURN_IN_MEMORY
#define RETURN_IN_MEMORY ix86_sol10_return_in_memory
+
+/* VxWorks uses the SVR4 register numbering. */
+
+#undef DBX_REGISTER_NUMBER
+#define DBX_REGISTER_NUMBER(n) svr4_dbx_register_map[n]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] fix debug info register numbering on x86 vxworks
2007-08-03 17:07 [PATCH] fix debug info register numbering on x86 vxworks Nathan Froyd
@ 2007-08-31 4:23 ` Mark Mitchell
0 siblings, 0 replies; 2+ messages in thread
From: Mark Mitchell @ 2007-08-31 4:23 UTC (permalink / raw)
To: gcc-patches, nathan
Nathan Froyd wrote:
> 2007-08-03 Nathan Froyd <froydnj@codesourcery.com>
>
> gcc/
> * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Define.
:REVIEWMAIL: OK
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-31 3:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-03 17:07 [PATCH] fix debug info register numbering on x86 vxworks Nathan Froyd
2007-08-31 4:23 ` Mark Mitchell
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).