
launch.json调试文件如下:
{
"version": "0.2.0",
"configurations": [
{
"name": "gaussdb",
"type": "cppdbg",
"request": "attach",
"program": "/home/omm/install/bin/gaussdb",
"processId": "${command:pickProcess}",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
具体bug如图所示,是文件/usr/src/debug/glibc-2.17-c758a686/sysdeps/unix/syscall-template.S中出现的错误.