Linux, VScode, C.
The file pcl_digtest.elf :
elena@Elena:~/Documents/1288/pclqube$ file pcl_digtest.elf
pcl_digtest.elf: ELF 32-bit LSB executable, Atmel AVR 8-bit, version 1 (SYSV), statically linked, with debug_info, not stripped
The avr8 is:/home/elena/local/avr8-gnu-toolchain-3.4.5.1522/avr8-gnu-toolchain-linux_x86_64
The code of luanch.json is:
version”: “0.2.0”,
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/pcl_digtest.elf",
"cwd": "${workspaceFolder}",
"externalConsole": false,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set arguments to debuggee",
"text": "set args -e1",
"ignoreFailures": true
}
],
"preLaunchTask": "run Makefile",
"launchCompleteCommand": "exec-run",
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb"
},
}
]
}
any idea what the problem is? thanks!
I’m trying to run and debug a makefile. it’s running well but the message in the debug console is:
&”warning: GDB: Failed to set controlling terminal: Operation not permittedn”
/bin/bash: line 1: /home/elena/Documents/1288/pclqube/pcl_digtest.elf: cannot execute binary file: Exec format error
/bin/bash: line 1: /home/elena/Documents/1288/pclqube/pcl_digtest.elf: Success
[1] + Done “/usr/bin/gdb” –interpreter=mi –tty=${DbgTerm} 0<“/tmp/Microsoft-MIEngine-In-pfp2dn4s.40s” 1>”/tmp/Microsoft-MIEngine-Out-xiepqbvb.4bj”
elena@Elena:~/Documents/1288/pclqube$
user23577401 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.