debug scripts
This commit is contained in:
parent
fbf62cd3f0
commit
e4140b6661
16
debug_support/copy_and_debug_start
Executable file
16
debug_support/copy_and_debug_start
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
# $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
|
||||||
12
debug_support/copy_app
Executable file
12
debug_support/copy_app
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# $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
|
||||||
16
debug_support/debug_start
Executable file
16
debug_support/debug_start
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
# $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
|
||||||
48
src/.vscode/launch.json
vendored
48
src/.vscode/launch.json
vendored
@ -1,54 +1,20 @@
|
|||||||
{
|
{
|
||||||
"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": "./build/profinet_io_dev",
|
"program": "${workspaceFolder}/out/build/am64xx_Debug/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.6.2:2345",
|
"miDebuggerServerAddress": "192.168.0.5:5000",
|
||||||
"miDebuggerArgs": "",
|
"miDebuggerArgs": "",
|
||||||
"setupCommands": [
|
"setupCommands": [
|
||||||
{
|
{
|
||||||
@ -70,7 +36,7 @@
|
|||||||
"text": "set target-async on"
|
"text": "set target-async on"
|
||||||
}*/
|
}*/
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
"version": "2.0.0"
|
"version": "2.0.0"
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user