Compare commits

..

No commits in common. "86d1193cf988aa24bcf3b8040e32fc65321f037a" and "405a2956868bfa232818cad9d3a056526089523e" have entirely different histories.

4 changed files with 41 additions and 51 deletions

View File

@ -1,16 +0,0 @@
# $1 - root@192.168.0.5
# $2 - ../out/build/am64xx_Debug/profinet_io_dev
$(dirname "$0")/copy_app $1 $2
ssh $1 <<END_SCRIPT
cd /home/root/ProfinetConnector
chmod 777 $(basename "$2")
gdbserver :5000 $(basename "$2")
exit
END_SCRIPT

View File

@ -1,12 +0,0 @@
# $1 - root@192.168.0.5
# $2 - ../out/build/am64xx_Debug/profinet_io_dev
ssh $1 <<END_SCRIPT
killall gdbserver
exit
END_SCRIPT
scp $2 $1:/home/root/ProfinetConnector

View File

@ -1,16 +0,0 @@
# $1 - root@192.168.0.5
# $2 - ../out/build/am64xx_Debug/profinet_io_dev
$(dirname "$0")/copy_app $1 $2
ssh $1 <<END_SCRIPT
cd /home/root/ProfinetConnector
chmod 777 $(basename "$2")
gdbserver :5000 $(basename "$2")
exit
END_SCRIPT

View File

@ -1,20 +1,54 @@
{ {
"configurations": [ "configurations": [
{
"name": "pn_dev: start debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/profinet_io_dev",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
/*"cwd": "${fileDirname}",*/
"environment": [],
"externalConsole": false,
"miDebuggerPath": "/home/svad/Projects/profinet_io_dev/debug_support/gdb",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Включить автоматическое форматирование для gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
/*{
"description": "Enable break on all exceptions",
"text": "catch throw",
"ignoreFailures": true
},*/
{
"description": "Задать для варианта приложения дизассемблирования значение Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
},
/*{
"text": "set target-async on"
}*/
]
},
{ {
// "processId": "${command:pickProcess}", // "processId": "${command:pickProcess}",
"name": "(gdb) Remote debug", "name": "(gdb) Remote debug",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
//"preLaunchTask": "PreDebug", "preLaunchTask": "PreDebug",
"program": "${workspaceFolder}/out/build/am64xx_Debug/profinet_io_dev", "program": "./build/profinet_io_dev",
//"additionalSOLibSearchPath": "/home/svad/armdev/beagle_board/sysroot/lib", "additionalSOLibSearchPath": "/home/svad/armdev/beagle_board/sysroot/lib",
// "processId": "${command:pickProcess}", // "processId": "${command:pickProcess}",
"MIMode": "gdb", "MIMode": "gdb",
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
"stopAtEntry": true,
"miDebuggerPath": "/usr/bin/gdb-multiarch", "miDebuggerPath": "/usr/bin/gdb-multiarch",
"miDebuggerServerAddress": "192.168.0.5:5000", "miDebuggerServerAddress": "192.168.6.2:2345",
"miDebuggerArgs": "", "miDebuggerArgs": "",
"setupCommands": [ "setupCommands": [
{ {
@ -36,7 +70,7 @@
"text": "set target-async on" "text": "set target-async on"
}*/ }*/
] ]
} },
], ],
"version": "2.0.0" "version": "2.0.0"
} }