Recent

Author Topic: Debugger is talking weird stuff  (Read 2095 times)

winni

  • Hero Member
  • *****
  • Posts: 3197
Debugger is talking weird stuff
« on: March 18, 2020, 01:18:29 am »
Hi!

Some days ago I got a new gdb version:
gdb|8.3.1-7.2|x86_64|

With every new session: After the first compile and run after the initialization of the  app the debugger is talking weird stuff about Python - see attachment.

System: Linux64, fpc 3.04, Laz 2.06, Suse Tumbleweed

The message does not bother much but I hope that somebody tells me the background of the mysterious message.

Winni

PS.: The only time I know about Python: It was a disco in the neighborhood when I was 20 ....


guest58172

  • Guest
Re: Debugger is talking weird stuff
« Reply #1 on: March 18, 2020, 02:12:33 am »
what is your python version ? here using python 3.7.1, gdb 8.3.5 I don't encounter the same message.

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Debugger is talking weird stuff
« Reply #2 on: March 18, 2020, 02:25:08 am »
Hi!

Thanx for the reply.

Latest Python version is   Python 3.8.2

But the bash tells me this if I type python[TAB] :

Code: Bash  [Select][+][-]
  1. python     python2    python2.7  python3    python3.8
 

Winni




trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Debugger is talking weird stuff
« Reply #3 on: March 19, 2020, 11:34:09 pm »
What is the output of python -V ?

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Debugger is talking weird stuff
« Reply #4 on: March 20, 2020, 12:18:09 am »
Hi trev!

Do you know about snakes?
I don't.

Code: Bash  [Select][+][-]
  1. python -V
  2. Python 2.7.17
  3.  

Winni

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Debugger is talking weird stuff
« Reply #5 on: March 20, 2020, 01:17:53 am »
I try to avoid pythons, if at all possible. I have enough issues getting the python dependencies right to compile ports on FreeBSD.

So, it would seem that the python you have in captivity is 2.7 (deprecated I understand). I suggest you try symlinking your python command to your v3 which I'm guessing is probably itself symlinked to 3.8.2.


winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Debugger is talking weird stuff
« Reply #6 on: March 20, 2020, 01:38:32 am »
Hi trev!

I dont do anything with Python and I dont know nothing about Python but only that it exists!

As there was no fpc/Laz update in the last 14 days for me I think that has to do with the nearly daily OS updates for Suse Tumbleweed. I detected in the log file that there was an update to Python 3.8.

But that is all I know.

So this is a miracle for me.
That's why I ask.

Winni

« Last Edit: March 20, 2020, 01:45:11 am by winni »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Debugger is talking weird stuff
« Reply #7 on: March 20, 2020, 01:58:24 am »
In a Terminal, try:

Code: [Select]
which python

which should tell you where the binary is located. It is probably in /usr/local/bin

If so, what does:

Code: [Select]
ls -l /usr/local/bin/python*

show?

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Debugger is talking weird stuff
« Reply #8 on: March 20, 2020, 02:12:52 am »
Hi trev!

Thanx for your help!

Code: Bash  [Select][+][-]
  1. linux-vqeu:~ # which python
  2. /usr/bin/python
  3. linux-vqeu:~ # ls /usr/bin/python -l
  4. lrwxrwxrwx 1 root root 9 Feb 15 23:17 /usr/bin/python -> python2.7
  5.  

So it is a link to 2.7

edit:

You want me  to link python t7o python3.8?

Lot of dangerous snakes here:
Code: Pascal  [Select][+][-]
  1. linux-vqeu:/usr/bin # ls pyth* -l
  2. lrwxrwxrwx 1 root root     9 Feb 15 23:17 python -> python2.7
  3. lrwxrwxrwx 1 root root     9 Feb 15 23:17 python2 -> python2.7
  4. -rwxr-xr-x 1 root root 14488 Feb 15 23:17 python2.7
  5. lrwxrwxrwx 1 root root     9 Mar  8 22:53 python3 -> python3.8
  6. -rwxr-xr-x 1 root root 14488 Mar  8 22:53 python3.8
  7.  
/


Winni
« Last Edit: March 20, 2020, 02:26:15 am by winni »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Debugger is talking weird stuff
« Reply #9 on: March 20, 2020, 06:07:49 am »
Yep, and then see if you get the same rude talking back from the debugger.

 

TinyPortal © 2005-2018