Define xmltarget_amd64_linux_no_xml only for amd64.
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 17 Apr 2010 14:12:31 +0000 (14:12 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 17 Apr 2010 14:12:31 +0000 (14:12 +0000)
2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>

* linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
if __x86_64__ is defined.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-x86-low.c

index bd7b1b37a1d20fff9db2ee26fb44a75d4c9c603e..49e6bb661ac32b9526ae2a10a72aeaccfa3f4d79 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
+       if __x86_64__ is defined.
+
 2010-04-16  Pierre Muller  <muller@ics.u-strasbg.fr>
 
        * configure: Regenerate.
index ec01f37e6def72b92374ebdd1158c5c9135f48c7..f254f3838981b795845a5b5bbef8240633829e3f 100644 (file)
@@ -46,10 +46,13 @@ static const char *xmltarget_i386_linux_no_xml = "@<target>\
 <architecture>i386</architecture>\
 <osabi>GNU/Linux</osabi>\
 </target>";
+
+#ifdef __x86_64__
 static const char *xmltarget_amd64_linux_no_xml = "@<target>\
 <architecture>i386:x86-64</architecture>\
 <osabi>GNU/Linux</osabi>\
 </target>";
+#endif
 
 #include <sys/reg.h>
 #include <sys/procfs.h>