π
<-
Chat plein-écran
[^]

GDB Firebird configuration issue

C, C++, ASM...

GDB Firebird configuration issue

Message non lude 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
Avatar de l’utilisateur
SlyVTTPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 43.1%
 
Messages: 484
Images: 31
Inscription: 19 Jan 2021, 09:41
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
GitHub: SlyVTT

Re: GDB Firebird configuration issue

Message non lude 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 :)
Image

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...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.2%
 
Messages: 14616
Images: 1218
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: GDB Firebird configuration issue

Message non lude 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
Avatar de l’utilisateur
SlyVTTPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 43.1%
 
Messages: 484
Images: 31
Inscription: 19 Jan 2021, 09:41
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
GitHub: SlyVTT

Re: GDB Firebird configuration issue

Message non lude 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
Avatar de l’utilisateur
SlyVTTPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 43.1%
 
Messages: 484
Images: 31
Inscription: 19 Jan 2021, 09:41
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
GitHub: SlyVTT


Retourner vers Native: Ndless, Linux, ...

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 27 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1397 utilisateurs:
>1366 invités
>27 membres
>4 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)