diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-04-17 14:12:31 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-04-17 14:12:31 +0000 |
commit | f6d1620c59c78e1861bf5afdebdbce856fa972f7 (patch) | |
tree | b12c95b729457ab801ca86cdef35de3e1b1744a9 | |
parent | 6cfa03d350f6486bc04451a31b403562e525fb0f (diff) | |
download | gdb-f6d1620c59c78e1861bf5afdebdbce856fa972f7.zip gdb-f6d1620c59c78e1861bf5afdebdbce856fa972f7.tar.gz gdb-f6d1620c59c78e1861bf5afdebdbce856fa972f7.tar.bz2 |
Define xmltarget_amd64_linux_no_xml only for amd64.
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.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index bd7b1b3..49e6bb6 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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. diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index ec01f37..f254f38 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -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> |