π
<-

GDB Firebird configuration issue

C, C++, ASM...
Online

GDB Firebird configuration issue

Unread postby SlyVTT » 06 Sep 2021, 15:09

Hi,

I am wondering if anybody succeeded in setting up properly a debugging solution for nSpire under WSL(2).

I am either Firebird or GDB server not working and don't know how to get something running smoothly altogether, cause I am reaching the limits of using the fprint method to debug my GUI Toolkit.

I have Firebird running on pure (native) Windows but cannot make it run under WSL (unable to create a rendering context. Even if other graphical apps a running well.

And cannot make GBD server running on windows.

So whatever I do, I do not have both Firebird/GDB running on the same system (WSL or Win10 native).

Do some of you succeeded in making the apps discussing together on win10 or WSL ? A good tutorial would be appreciated.

BR

Sly
Some works in progress :
The GUI Toolkit NF for nSpireMyShmup for fxCG-50Magic Light for Casio Graph 90+E
and
Magic Light for nSpire CX/CX-II
Simple Text Editor for nSpireOutRun for Casio Graph 90+E
95%
50%
100%
75%
100%
And more to come ... stay tuned
User avatar
SlyVTTPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 48.2%
 
Posts: 547
Images: 32
Joined: 19 Jan 2021, 09:41
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
GitHub: SlyVTT

Re: GDB Firebird configuration issue

Unread postby Adriweb » 06 Sep 2021, 15:28

At this point, I'm wondering if it'll be faster/easier to just use a Linux VM for everything :)

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.7%
 
Posts: 14820
Images: 1131
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Online

Re: GDB Firebird configuration issue

Unread postby SlyVTT » 06 Sep 2021, 16:34

Yes agree, just a bit curious cause it may be possible to have this working and hence save some gigabytes.
I am very happy with WSL, so if I could get Firebird/GDB working with it, that would be really wonderful.
Some works in progress :
The GUI Toolkit NF for nSpireMyShmup for fxCG-50Magic Light for Casio Graph 90+E
and
Magic Light for nSpire CX/CX-II
Simple Text Editor for nSpireOutRun for Casio Graph 90+E
95%
50%
100%
75%
100%
And more to come ... stay tuned
User avatar
SlyVTTPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 48.2%
 
Posts: 547
Images: 32
Joined: 19 Jan 2021, 09:41
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
GitHub: SlyVTT

Online

Re: GDB Firebird configuration issue

Unread postby SlyVTT » 10 Sep 2021, 14:40

So, after some long days and nights spent on this, some good news/explanations.

I never succeeded in making it working under WSL :bang: . This seems to come from IP "translation" making it impossible to communicate between Firebird on Win10 and GDB on WSL. I was not able to create a bridge between both system.

So I decided to install a true Ubuntu 21.04 (the last one) distribution aside Win10 with a dual boot (and it is a pain with Lenovo's computer).
Everything (finally) installed, Ndless SDK properly installed and configured, all building process Ok and ... ... ... still nothing working because of a conflict in packages.
Ubuntu 21.04, in its great care for users, decided to have the GDB with ARM support (arm-none-eabi-gdb version 10.1.0) installed in the default configuration, and it creates a conflict with the Ndless toolchain. This leads to instantaneous crashes on GDB with a segmentation fault. So need to restart from scratch.

In between I made some parallel tests on a former Kubuntu 20.04 Virtual Machine and GDB(ARM) seemed to work without crashing ...

So I then decided then to came back one version earlier, Ubuntu 20.04.3 LTS with minimal install, so what I can properly choose what will be installed later on.

Once again, Ndless SDK installation (need to admit I am very happy of my brand new computer that makes the job in no longer than 15minutes).
Firebird for linux installed, AND .... GDB successfully connected. YES !!! :#gni#: :#vive#:

So as a summary, this is what I tried :

Firebird Win10 with GDB(Arm) WSL : not working due to non identified IP for scrutinizing port :3333
Firebird WSL with GDB(ARM) WSL : not working due to issue with Xserver (firebird cannot initialise)
Firebird Linux Ubuntu 21.04 (standard install) with GDB(ARM) : not working because of conflict with GDB (ARM) package already installed
Firebird Linux Ubuntu 20.04 (minimum install) with GDB(ARM) : Working

I guess the "minimum install" of Ubuntu 21.04 should also work but I am a bit lazy and don't want to have one more session of "full install".

Now the only remaining topic is to have a GUI frontend working for debugging cause GDB is Ok, but a bit tough when using command line.

Ciao

Sly
Some works in progress :
The GUI Toolkit NF for nSpireMyShmup for fxCG-50Magic Light for Casio Graph 90+E
and
Magic Light for nSpire CX/CX-II
Simple Text Editor for nSpireOutRun for Casio Graph 90+E
95%
50%
100%
75%
100%
And more to come ... stay tuned
User avatar
SlyVTTPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Level up: 48.2%
 
Posts: 547
Images: 32
Joined: 19 Jan 2021, 09:41
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
GitHub: SlyVTT


Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: ClaudeBot [spider] and 4 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1175 utilisateurs:
>1135 invités
>34 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)