Re: Issues debugging remote leon3 system
Orlando Arias <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
Greetings, In hope anybody is seeing this, I have updated to GDB 7.8.2 and the issue is still persistent. I am configuring gdb in its own build directory with mkdir gdb-build && cd gdb-build ../configure --prefix=/usr \ --target=sparc-leon3-linux \ --host=x86_64-unknown-linux-gnu \ --build=x86_64-unknonw-linux-gnu \ --with-sysroot=/usr/sparc-leon3-linux \ --without-guile \ --disable-nls \ --with-python=/usr/bin/python2 \ --with-system-readline and gdbserver as a separate package with ../configure --prefix=/usr \ --build=x86_64-unknown-linux-gnu \ --host=sparc-leon3-linux \ --program-prefix="" \ --disable-nls Please let me know if I am missing something. Thank you. Cheers, Orlando. On 01/09/2015 11:23 AM, Orlando Arias wrote: > Greetings > > I have a Spartan6 FPGA in a Xilinx SP605 board configured with a stock > Leon3 SPARC processor. Currently, I am running GNU/Linux on the device > (kernel version 3.14.26, uClibc version 0.9.33.2, BusyBox 1.23.0) and I > am attempting to run gdbserver on the device. > > Whenever I try to connect remotely through TCP, I get the following > error on the GDB client: > > $ sparc-leon3-linux-gdb hw > GNU gdb 7.8.1 > Copyright (C) 2014 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "--host=x86_64-unknown-linux-gnu > --target=sparc-leon3-linux". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > <https://hardwaresecurity.org>. > Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from hw...done. > (gdb) target remote leon3:1234 > Remote debugging using leon3:1234 > Remote register badly formatted: > T050e:0000000000000000;1e:00000000efc4d6a0;50:0000000000000000;51:0000000000000000;0f:0000000000000000;thread:p37d.37d;core:0; > here: > 00000000;1e:00000000efc4d6a0;50:0000000000000000;51:0000000000000000;0f:0000000000000000;thread:p37d.37d;core:0; > (gdb) > > > Attached you can find the the output of gdbserver (debugging enabled, > not placed here). I have done a packet capture of the protocol for an > ARM target and compared it to a capture for the Leon3 target and noticed > that there a few XML files being transmitted on the ARM target which are > not present in the SPARC target. I am not sure if this is necessary. > > I do not have any other SPARC units on which I can test this issue and > searching online and the mailing lists has yielded no results. Please > advice. Thank you. > > Cheers, > Orlando. >
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUuCYWAAoJEKwbU4ENrwN15jMP/RVyPx1K1SfHoC72qTqARQdt VKZAo1TUoiQu4romzDZWJrjUqUJ/IZKZljI/73j0kVIA1h/DnW1EzdqpVVEwXAA9 hY4NWSBe8DESkuP170/8CVLazKk+9cGUu+Ol8XtM2avgV72R8+2wry18qSLhVBUg k+4xbmI/6wAQ6XhwBA633hy5wAsJgXhmzO+wGlnxfTc/JV+OO7zUcYTuGKfevoQZ PvQN6Kyq4UuRao79/L59TWblHiI4wDsaPVl3Rw4pMwO9o1bZob1JJtC8QoR0lhkc CoQ+K4GGMKoRcWAM6qPKbL4CnWrrrO8i/cpy050ttT++sZsa5P5aiv/huC2mI8hi w+z0KgvPNhofWnifQxxSRbbLXB4lXjnJwP719Vvk1DQ35jsItBfKJFU0wRKEcnHm hbddK6btnSbIdb9K73cGUk2ZTi+u8fu1wzRAiJgU4F/pZnqSNM1E5yrKinLHOfkb /w5Bnpt6B2nhtTM7fr4cQzZx/21OW8Bz4js/e35GtoiWr7UyrzG7r47Ftx8YCvfv IFOE5/V5da5TEPJEeop9VPRocONoSfggzdE759WfK+G40pZRo41Z/mXHTL+hkUUf 4aZFlwDabVr4Q+AktwoMswkjKkt1pS2T5JdhYBQ2uePuI7+qboNNCxEhGVEE0zQS OmOJNyUtZYUZB2l5CWGK =glH9 -----END PGP SIGNATURE-----