GDB python

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GDB python

1,851 Views
jeffthompson
Contributor V

I want to run GDB using  Python scripting and found arm-none-eabi-gdb-add-index-py. But when I tried setting the GDB server command to that, I got

Error with command: arm-none-eabi-gdb-add-index-py --version
Cannot run program "arm-none-eabi-gdb-add-index-py": Launching failed

How can I accomplish my goal? I'm using MCUXpresso 11.4 for the MIMXRT1062DVJ6A.

Tags (2)
0 Kudos
Reply
4 Replies

1,800 Views
jeffthompson
Contributor V

I upgraded to MCUXpresso and got

Could not determine GDB version using command: arm-none-eabi-gdb-py --version

This seems to be a known problem with the way GDB was built, from what I can find on the Web.

0 Kudos
Reply

1,829 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @jeffthompson ,

Please look into MCUXpressoIDE_11.4.0_6157_prc1\ide\tools\bin. Arm-none-eabi-gdb-add-index-py is a file, not an executable file. You should use arm-none-eabi-gdb-py.exe instead.

 

Regards,

Jing

0 Kudos
Reply

1,774 Views
jeffthompson
Contributor V

I still get the same result:

Could not determine GDB version using command: arm-none-eabi-gdb-py.exe --version

 

I also get the same error if I navigate to the executable and select it in the Debug Configurations menu:

Could not determine GDB version using command: C:\nxp\MCUXpressoIDE_11.5.0_7232\ide\tools\bin\arm-none-eabi-gdb-py.exe --versio

0 Kudos
Reply

1,742 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

I'm afraid I can't help. This tool is not used by MCUXpresso. You can ask in other python forum.

 

Regards,

Jing

0 Kudos
Reply