From: Orlando Arias <oarias@knights.ucf.edu>
To: <gdb@sourceware.org>
Subject: Re: Issues debugging remote leon3 system
Date: Fri, 16 Jan 2015 15:44:00 -0000 [thread overview]
Message-ID: <54B9326B.8040804@knights.ucf.edu> (raw)
In-Reply-To: <54B82616.1060706@knights.ucf.edu>
[-- Attachment #1: Type: text/plain, Size: 3732 bytes --]
Greetings,
Further providing information, I have found the following whilst
debugging the issue:
At some point, gdbserver sends the following string:
$T050e:0*,;1e:0*"00ef90f6a0;50:0*,;51:0*,;0f:0*,;thread:p37b.37b;core:0;#54
and gdb attempts to process:
T050e:0000000000000000;1e:0008a6a000080e14;50:0000000000000000;51:0000000000000000;0f:0000000000000000;thread:p37e.37e;core:0;
At the moment, I am not sure as to what I am looking at. I will continue
working on finding the root cause. If anybody has any ideas, please let
me know. Thank you.
Cheers,
Orlando.
On 01/15/2015 03:41 PM, Orlando Arias wrote:
> 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.
>>
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-01-16 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-09 16:20 Orlando Arias
2015-01-15 20:39 ` Orlando Arias
2015-01-16 15:44 ` Orlando Arias [this message]
2015-01-16 16:38 ` Sterling Augustine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54B9326B.8040804@knights.ucf.edu \
--to=oarias@knights.ucf.edu \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox