Problem running sparc-rtems5-gdb

Gedare Bloom gedare at rtems.org
Tue Sep 24 15:12:00 UTC 2019


On Sun, Sep 22, 2019 at 2:14 AM Vijay Kumar Banerjee
<vijaykumar9597 at gmail.com> wrote:
>
>
>
> On Sun, Sep 22, 2019, 1:22 PM Niteesh <gsnb.gn at gmail.com> wrote:
>>
>> Sorry, for so many questions.
>> But I was actually following the latest quick start guide, but it is lacking information on building and running applications, the last page on quick start section was about testing the BSP. That's why I had to refer to the old wiki section.
>
>
> The doc has been updated recently and I don't know if someone is working on it or not. I see a todo section there, which probably is for building and running apps.
>
>> how could I patch this?
>
> Everyone: Where to add the guide to build and run hello world in docs?
>
The User Manual Ch. 2 Quick Start is the right place.

>>
>>>
>> On Sun, Sep 22, 2019 at 1:01 PM Vijay Kumar Banerjee a<vijaykumar9597 at gmail.com> wrote:
>>>
>>>
>>>
>>> On Sun, Sep 22, 2019 at 12:59 PM Niteesh <gsnb.gn at gmail.com> wrote:
>>>>
>>>> https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start#Running
>>>>
>>>> I actually changed the rtems version from 4.11 to 5 in the command, there was no documentation about the change in version 5.
>>>>
>>> This wiki page is a bit outdated and marked as "To be removed". You should
>>> follow the latest docs quickstart guide:
>>> https://docs.rtems.org/branches/master/user/start/index.html
>>>>
>>>> On Sun, Sep 22, 2019 at 12:30 PM Vijay Kumar Banerjee <vijaykumar9597 at gmail.com> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> I just checked that the built-in sis in gdb has been disabled in this
>>>>> commit:
>>>>> https://git.rtems.org/rtems-source-builder/commit/?id=abc540105d10ddc9cad7de3c7ac0a9aa209ac828
>>>>>
>>>>> Niteesh: This means that the command you should use is `sparc-rtems5-sis`.
>>>>> Can you please post the link to the exact page where the `sparc-rtems5-gdb`
>>>>> steps are mentioned with `tar sim`? I think this would need to be updated and
>>>>> you can propose a patch for this.
>>>>>
>>>>> Best regards,
>>>>> Vijay
>>>>>
>>>>>
>>>>> On Sun, Sep 22, 2019 at 11:04 AM Vijay Kumar Banerjee <vijaykumar9597 at gmail.com> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> ( Please use the reply to all option to keep the conversation on the list )
>>>>>> On Sun, Sep 22, 2019 at 10:50 AM Niteesh <gsnb.gn at gmail.com> wrote:
>>>>>>>
>>>>>>> bsp: erc32
>>>>>>>
>>>>>>> arch: sparc
>>>>>>
>>>>>> Odd. It is expected to work in erc32 if your build is right. I don't have a
>>>>>> recent sparc build so I can't verify right now.
>>>>>> Let's wait for other people to join and help with the issue. :)
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Sep 22, 2019 at 10:49 AM Vijay Kumar Banerjee <vijaykumar9597 at gmail.com> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, Sep 22, 2019 at 10:35 AM Niteesh <gsnb.gn at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>> The problem actually occurred when I was trying to run the hello.exe with gdb.
>>>>>>>>> 1: sparc-rtems5-gdb hello.exe
>>>>>>>>> and inside gdb to set the target as simulator.
>>>>>>>>> 2: tar sim
>>>>>>>>>
>>>>>>>> This is the expected sequence, what BSP are you using?
>>>>>>>>>
>>>>>>>>> (gdb) tar  sim
>>>>>>>>> Undefined target command: "sim".  Try "help target".
>>>>>>>>>
>>>>>>>>> While going through some stackoverflow posts I found that to target simulators --enable-sim has to given while building gdb, Is this the problem or am I missing something?
>>>>>>>>>
>>>>>>>>> On Sun, Sep 22, 2019 at 10:29 AM Vijay Kumar Banerjee <vijaykumar9597 at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sun, Sep 22, 2019 at 10:01 AM Niteesh <gsnb.gn at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>> I was following the quick-start guide from
>>>>>>>>>>> https://docs.rtems.org/branches/master/user/start/index.html
>>>>>>>>>>> I followed the exact steps but still couldn't get the hello world
>>>>>>>>>>> running. I face issues when running the GDB, when trying to set the
>>>>>>>>>>> target to simulator I get "undefined target cmd: sim",
>>>>>>>>>>> Is it an issue on my side or is something missing in the docs?
>>>>>>>>>>
>>>>>>>>>> Hi Niteesh,
>>>>>>>>>>
>>>>>>>>>> Usually, it is enough to post to any one of devel or users list.
>>>>>>>>>>
>>>>>>>>>> Can you please post the exact command sequence that gave you the
>>>>>>>>>> error? You can copy the command output here if it's not long, or paste
>>>>>>>>>> it somewhere like a github gist and send the link here.
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>> Vijay
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> devel mailing list
>>>>>>>>>>> devel at rtems.org
>>>>>>>>>>> http://lists.rtems.org/mailman/listinfo/devel
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list